Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPRV] v2 of AFF created and added #619

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion file-formats/sprv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<name>.sprv.json` | 1 | [`zif_aff_sprv_v1.intf.abap`](./type/zif_aff_sprv_v1.intf.abap) | [`sprv-v1.json`](./sprv-v1.json) | [`srt_test_sprv.sprv.json`](./examples/srt_test_sprv.sprv.json)
`<name>.sprv.json` | 1 | [`zif_aff_sprv_v2.intf.abap`](./type/zif_aff_sprv_v2.intf.abap) | [`sprv-v2.json`](./sprv-v2.json) | [`srt_test_sprv2.sprv.json`](./examples/srt_test_sprv2.sprv.json)
13 changes: 13 additions & 0 deletions file-formats/sprv/examples/srt_test_sprv2.sprv.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{

Check failure on line 1 in file-formats/sprv/examples/srt_test_sprv2.sprv.json

View workflow job for this annotation

GitHub Actions / Validate examples against schema

Additional properties are not allowed ('implementingClass' was unexpected) in ./file-formats/sprv/examples/srt_test_sprv2.sprv.json
"formatVersion": "1",
"header": {
"description": "Test SPRV Object for SOAP Runtime",
"originalLanguage": "en"
},
"serviceProvider": {
"providerName": "IIW_SRT_TEST_WEBI2",
"namespace": "urn:sap-com:sprx:ep:sap:test",
"prefix": "",
"implementingClass": "CL_IIW_SRT_TEST_WEBI2"
}
}
100 changes: 100 additions & 0 deletions file-formats/sprv/sprv-v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/sprv/sprv-v2.json",
"title": "SOAP Web Service Provider Model",
"description": "SOAP web service provider model",
"type": "object",
"properties": {
"formatVersion": {
"title": "ABAP File Format Version",
"description": "The ABAP file format version",
"type": "string",
"const": "2"
},
"header": {
"title": "Header",
"description": "Header data",
"type": "object",
"properties": {
"description": {
"title": "Description",
"description": "Description of the ABAP object",
"type": "string",
"maxLength": 60
},
"originalLanguage": {
"title": "Original Language",
"description": "Original language of the ABAP object",
"type": "string",
"minLength": 2
},
"abapLanguageVersion": {
"title": "ABAP Language Version",
"description": "ABAP language version",
"type": "string",
"enum": [
"standard",
"cloudDevelopment"
],
"enumTitles": [
"Standard",
"ABAP Cloud Development"
],
"enumDescriptions": [
"Standard",
"ABAP cloud development"
],
"default": "standard"
}
},
"additionalProperties": false,
"required": [
"description",
"originalLanguage"
]
},
"serviceProvider": {
"title": "Service Provider",
"description": "Service provider details",
"type": "object",
"properties": {
"providerName": {
"title": "Provider Name",
"description": "Name of the service provider",
"type": "string",
"maxLength": 30
},
"namespace": {
"title": "Namespace",
"description": "Namespace of the service provider",
"type": "string",
"maxLength": 255
},
"prefix": {
"title": "Object Name Prefix",
"description": "Prefix for all generated objects",
"type": "string",
"maxLength": 10
},
"implementingClass": {
"title": "Implementing Class",
"description": "Implementing Class of Service Provider",

Check failure on line 82 in file-formats/sprv/sprv-v2.json

View workflow job for this annotation

GitHub Actions / Compare generated against provided

"description": "Implementing class of service provider",
"type": "string",
"maxLength": 30
}
},
"additionalProperties": false,
"required": [
"providerName",
"namespace"
]
}
},
"additionalProperties": false,
"required": [
"formatVersion",
"header",
"serviceProvider"
]
}
41 changes: 41 additions & 0 deletions file-formats/sprv/type/zif_aff_sprv_v2.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
INTERFACE zif_aff_sprv_v2
PUBLIC.


TYPES:
"! <p class="shorttext">Service Provider</p>
"! Service provider details
BEGIN OF ty_servprovider,
"! <p class="shorttext">Provider Name</p>
"! Name of the service provider
"! $required
provider_name TYPE c LENGTH 30,
"! <p class="shorttext">Namespace</p>
"! Namespace of the service provider
"! $required
namespace TYPE c LENGTH 255,
"! <p class="shorttext">Object Name Prefix</p>
"! Prefix for all generated objects
"! $showAlways
prefix TYPE c LENGTH 10,
"! <p class="shorttext">Implementing Class</p>
"! Implementing class of service provider
"! $showAlways
implementing_class TYPE zif_aff_types_v1=>ty_object_name_30,
END OF ty_servprovider.
TYPES:
"! <p class="shorttext">SOAP Web Service Provider Model</p>
"! SOAP web service provider model
BEGIN OF ty_main,
"! $required
format_version TYPE zif_aff_types_v1=>ty_format_version,
"! <p class="shorttext">Header</p>
"! Header data
"! $required
header TYPE zif_aff_types_v1=>ty_header_60_cloud,
"! <p class="shorttext">Service Provider</p>
"! Service provider details
"! $required
service_provider TYPE ty_servprovider,
END OF ty_main.
ENDINTERFACE.
7 changes: 7 additions & 0 deletions file-formats/sprv/type/zif_aff_sprv_v2.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "Interface with the SPRV AFF Type",
"originalLanguage": "en"
}
}
Loading