Skip to content

Commit

Permalink
Updated consumer properties and removed HTTP consumer type
Browse files Browse the repository at this point in the history
Change-Id: Iae7559de130c1430d0d15fe7f66032d2f13f9a23
  • Loading branch information
praveen-skp committed Aug 4, 2023
1 parent f0a08df commit 1139986
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 24 deletions.
16 changes: 5 additions & 11 deletions file-formats/srvc/srvc-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,14 @@
"type": "string",
"enum": [
"standard",
"keyUser",
"cloudDevelopment"
],
"enumTitles": [
"Standard",
"ABAP for Key Users",
"ABAP Cloud Development"
],
"enumDescriptions": [
"Standard",
"ABAP for key user extensibility",
"ABAP cloud development"
],
"default": "standard"
Expand All @@ -71,20 +68,17 @@
"enum": [
"OData",
"WebService",
"RFC",
"HTTP"
"RFC"
],
"enumTitles": [
"OData",
"Web Service",
"RFC",
"HTTP"
"RFC"
],
"enumDescriptions": [
"OData",
"Web service",
"RFC",
"HTTP"
"RFC"
]
},
"objectType": {
Expand All @@ -104,8 +98,8 @@
"description": "Properties",
"type": "array",
"items": {
"title": "Connection Property",
"description": "Connection property",
"title": "Consumer Property Details",
"description": "Consumer property details",
"type": "object",
"properties": {
"id": {
Expand Down
22 changes: 9 additions & 13 deletions file-formats/srvc/type/zif_aff_srvc_v1.intf.abap
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,23 @@ INTERFACE zif_aff_srvc_v1
"! RFC
"! $enumValue 'RFC'
rfc TYPE ty_cons_type VALUE '03',
"! <p class="shorttext">HTTP</p>
"! HTTP
"! $enumValue 'HTTP'
http TYPE ty_cons_type VALUE '04',
END OF co_cons_type.

TYPES:
"! <p class="shorttext">Connection Property</p>
"! Connection property
BEGIN OF ty_connection_property,
"! <p class="shorttext">Consumer Property Details</p>
"! Consumer property details
BEGIN OF ty_consumer_property,
"! <p class="shorttext">Id</p>
"! Id
id TYPE c LENGTH 40,
"! <p class="shorttext">Value</p>
"! Value
value TYPE c LENGTH 40,
END OF ty_connection_property.
END OF ty_consumer_property.

"! <p class="shorttext">Connection Properties</p>
"! Connection properties
TYPES ty_connection_properties TYPE TABLE OF ty_connection_property WITH DEFAULT KEY.
"! <p class="shorttext">Consumer Properties</p>
"! Consumer properties
TYPES ty_consumer_properties TYPE TABLE OF ty_consumer_property WITH DEFAULT KEY.

TYPES:
"! <p class="shorttext">Consumer Information</p>
Expand All @@ -56,7 +52,7 @@ INTERFACE zif_aff_srvc_v1
object_name TYPE c LENGTH 40,
"! <p class="shorttext">Properties</p>
"! Properties
properties TYPE ty_connection_properties,
properties TYPE ty_consumer_properties,
END OF ty_consumer.

TYPES:
Expand All @@ -68,7 +64,7 @@ INTERFACE zif_aff_srvc_v1
"! <p class="shorttext">Header</p>
"! Header
"! $required
header TYPE zif_aff_types_v1=>ty_header_60,
header TYPE zif_aff_types_v1=>ty_header_60_cloud,
"! <p class="shorttext">Consumer</p>
"! Consumer
"! $required
Expand Down

0 comments on commit 1139986

Please sign in to comment.