diff --git a/file-formats/advc/README.md b/file-formats/advc/README.md new file mode 100644 index 000000000..25733b3df --- /dev/null +++ b/file-formats/advc/README.md @@ -0,0 +1,5 @@ +# ADVC File Format + +File | Cardinality | Definition | Schema | Example +:--- | :--- | :--- | :--- | :--- +`.advc.json` | 1 | [`zif_aff_advc_v1.intf.abap`](./type/zif_aff_advc_v1.intf.abap) | [`advc-v1.json`](./advc-v1.json) | [`z_aff_example_advc.advc.json`](./examples/z_aff_example_advc.advc.json) diff --git a/file-formats/advc/advc-v1.json b/file-formats/advc/advc-v1.json new file mode 100644 index 000000000..e5a3d8d01 --- /dev/null +++ b/file-formats/advc/advc-v1.json @@ -0,0 +1,66 @@ +{ + "$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/advc/advc-v1.json", + "title": "App Variant", + "description": "App variant", + "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": 100 + }, + "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", + "keyUser", + "cloudDevelopment" + ], + "enumTitles": [ + "Standard", + "ABAP for Key Users", + "ABAP Cloud Development" + ], + "enumDescriptions": [ + "Standard", + "ABAP for key user extensibility", + "ABAP cloud development" + ], + "default": "standard" + } + }, + "additionalProperties": false, + "required": [ + "description", + "originalLanguage" + ] + } + }, + "additionalProperties": false, + "required": [ + "formatVersion", + "header" + ] +} diff --git a/file-formats/advc/examples/z_aff_example_advc.advc.json b/file-formats/advc/examples/z_aff_example_advc.advc.json new file mode 100644 index 000000000..7b6e6777a --- /dev/null +++ b/file-formats/advc/examples/z_aff_example_advc.advc.json @@ -0,0 +1,7 @@ +{ + "formatVersion": "1", + "header": { + "description": "ADVC Example Object", + "originalLanguage": "en" + } +} diff --git a/file-formats/advc/type/zif_aff_advc_v1.intf.abap b/file-formats/advc/type/zif_aff_advc_v1.intf.abap new file mode 100644 index 000000000..3b822df31 --- /dev/null +++ b/file-formats/advc/type/zif_aff_advc_v1.intf.abap @@ -0,0 +1,20 @@ +INTERFACE zif_aff_advc_v1 + PUBLIC. + + TYPES: + "!

App Variant

+ "! App variant + 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_100, + + END OF ty_main. + +ENDINTERFACE. diff --git a/file-formats/advc/type/zif_aff_advc_v1.intf.json b/file-formats/advc/type/zif_aff_advc_v1.intf.json new file mode 100644 index 000000000..e395a6911 --- /dev/null +++ b/file-formats/advc/type/zif_aff_advc_v1.intf.json @@ -0,0 +1,7 @@ +{ + "formatVersion": "1", + "header": { + "description": "AFF type for ADVC (cross-client app variant)", + "originalLanguage": "en" + } +}