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

Pull request for newly created object type SPRV #369

Merged
merged 11 commits into from
Jun 28, 2022
5 changes: 5 additions & 0 deletions file-formats/sprv/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +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) |
89 changes: 89 additions & 0 deletions file-formats/sprv/sprv-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"$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-v1.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": "1"
},
"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,
"maxLength": 2,
"pattern": "^[a-z]+$"
},
"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": {
"name": {
"title": "Name",
"description": "Name of the service provider",
"type": "string",
"maxLength": 30
},
"prefix": {
"title": "Prefix",
"description": "Prefix for all generated objects",
"type": "string",
"maxLength": 10
}
},
"additionalProperties": false,
"required": [
"name"
]
}
},
"additionalProperties": false,
"required": [
"formatVersion",
"header",
"serviceProvider"
]
}
33 changes: 33 additions & 0 deletions file-formats/sprv/type/zif_aff_sprv_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
INTERFACE zif_aff_sprv_v1
PUBLIC.


TYPES:
"! <p class="shorttext">Service Provider</p>
"! Service provider details
BEGIN OF ty_servprovider,
"! <p class="shorttext">Name</p>
"! Name of the service provider
"! $required
name TYPE c LENGTH 30,
"! <p class="shorttext">Prefix</p>
"! Prefix for all generated objects
"! $showAlways
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,
"! <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_v1.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"
}
}