Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
schneidermic0 authored Nov 10, 2023
2 parents 614108a + 89a1440 commit a168708
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 12 deletions.
4 changes: 2 additions & 2 deletions file-formats/sprv/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPRV File Format

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) |
:--- | :--- | :--- | :--- | :---
`<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)
12 changes: 12 additions & 0 deletions file-formats/sprv/examples/srt_test_sprv.sprv.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"formatVersion": "1",
"header": {
"description": "SPRV-Objekt für SOAP-Laufzeit testen",
"originalLanguage": "en"
},
"serviceProvider": {
"providerName": "IIW_SRT_TEST_SPRV_PROVIDER",
"namespace": "urn:sap-com:sprx:ep:sap:test",
"prefix": ""
}
}
15 changes: 11 additions & 4 deletions file-formats/sprv/sprv-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,29 @@
"description": "Service provider details",
"type": "object",
"properties": {
"name": {
"title": "Name",
"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": 30
},
"prefix": {
"title": "Prefix",
"title": "Object Name Prefix",
"description": "Prefix for all generated objects",
"type": "string",
"maxLength": 10
}
},
"additionalProperties": false,
"required": [
"name"
"providerName",
"namespace"
]
}
},
Expand Down
16 changes: 10 additions & 6 deletions file-formats/sprv/type/zif_aff_sprv_v1.intf.abap
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,29 @@ INTERFACE zif_aff_sprv_v1
"! <p class="shorttext">Service Provider</p>
"! Service provider details
BEGIN OF ty_servprovider,
"! <p class="shorttext">Name</p>
"! <p class="shorttext">Provider Name</p>
"! Name of the service provider
"! $required
name TYPE c LENGTH 30,
"! <p class="shorttext">Prefix</p>
provider_name TYPE c LENGTH 30,
"! <p class="shorttext">Namespace</p>
"! Namespace of the service provider
"! $required
namespace TYPE c LENGTH 30,
"! <p class="shorttext">Object Name Prefix</p>
"! Prefix for all generated objects
"! $showAlways
prefix TYPE c LENGTH 10,
prefix TYPE c LENGTH 10,
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,
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,
header TYPE zif_aff_types_v1=>ty_header_60_cloud,
"! <p class="shorttext">Service Provider</p>
"! Service provider details
"! $required
Expand Down

0 comments on commit a168708

Please sign in to comment.