diff --git a/file-formats/siad/README.md b/file-formats/siad/README.md new file mode 100644 index 000000000..a397c5f67 --- /dev/null +++ b/file-formats/siad/README.md @@ -0,0 +1,5 @@ +# SIAD File Format + +File | Cardinality | Definition | Schema | Example +:--- | :--- | :--- | :--- | :--- +`.siad.json` | 1 | [`zif_aff_siad_v1.intf.abap`](./type/zif_aff_siad_v1.intf.abap) | [`siad-v1.json`](./siad-v1.json) | [z_aff_siad_example.siad.json](./examples/z_aff_siad_example.siad.json) diff --git a/file-formats/siad/examples/z_aff_siad_example.siad.json b/file-formats/siad/examples/z_aff_siad_example.siad.json new file mode 100644 index 000000000..964c97ec1 --- /dev/null +++ b/file-formats/siad/examples/z_aff_siad_example.siad.json @@ -0,0 +1,11 @@ +{ + "formatVersion": "1", + "header": { + "description": "SIAD Example", + "originalLanguage": "en" + }, + "generalInformation": { + "businessRoleTemplate": "BRT", + "launchpadSpaceTemplate": "LPST" + } +} diff --git a/file-formats/siad/siad-v1.json b/file-formats/siad/siad-v1.json new file mode 100644 index 000000000..7bdab4a74 --- /dev/null +++ b/file-formats/siad/siad-v1.json @@ -0,0 +1,90 @@ +{ + "$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/siad/siad-v1.json", + "title": "Business Role Template Launchpad Space Template Assignment", + "description": "Business role template launchpad space template assignment", + "type": "object", + "properties": { + "formatVersion": { + "title": "Format Version", + "description": "Format version", + "type": "string", + "const": "1" + }, + "header": { + "title": "Header", + "description": "Header", + "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" + ] + }, + "generalInformation": { + "title": "General Information", + "description": "General information", + "type": "object", + "properties": { + "businessRoleTemplate": { + "title": "Business Role Template", + "description": "Business role template", + "type": "string", + "maxLength": 30 + }, + "launchpadSpaceTemplate": { + "title": "Launchpad Space Template", + "description": "Launchpad space template", + "type": "string", + "maxLength": 35 + } + }, + "additionalProperties": false, + "required": [ + "businessRoleTemplate", + "launchpadSpaceTemplate" + ] + } + }, + "additionalProperties": false, + "required": [ + "formatVersion", + "header", + "generalInformation" + ] +} diff --git a/file-formats/siad/type/zif_aff_siad_v1.intf.abap b/file-formats/siad/type/zif_aff_siad_v1.intf.abap new file mode 100644 index 000000000..e84388c1a --- /dev/null +++ b/file-formats/siad/type/zif_aff_siad_v1.intf.abap @@ -0,0 +1,43 @@ +INTERFACE zif_aff_siad_v1 + PUBLIC. + + TYPES: + + "!

General Information

+ "! General information + BEGIN OF ty_general_information, + + "!

Business Role Template

+ "! Business role template + "! $required + business_role_template TYPE zif_aff_types_v1=>ty_object_name_30, + + "!

Launchpad Space Template

+ "! Launchpad space template + "! $required + launchpad_space_template TYPE c LENGTH 35, + + END OF ty_general_information, + + "!

Business Role Template Launchpad Space Template Assignment

+ "! Business role template launchpad space template assignment + BEGIN OF ty_main, + + "!

Format Version

+ "! Format version + "! $required + format_version TYPE zif_aff_types_v1=>ty_format_version, + + "!

Header

+ "! Header + "! $required + header TYPE zif_aff_types_v1=>ty_header_60_cloud, + + "!

General Information

+ "! General information + "! $required + general_information TYPE ty_general_information, + + END OF ty_main. + +ENDINTERFACE. diff --git a/file-formats/siad/type/zif_aff_siad_v1.intf.json b/file-formats/siad/type/zif_aff_siad_v1.intf.json new file mode 100644 index 000000000..47136d621 --- /dev/null +++ b/file-formats/siad/type/zif_aff_siad_v1.intf.json @@ -0,0 +1,7 @@ +{ + "formatVersion": "1", + "header": { + "description": "AFF for type SIAD - V1", + "originalLanguage": "en" + } +}