Skip to content

Commit

Permalink
[ADVC] Add new object type ADVC (#686)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Schneider <[email protected]>
  • Loading branch information
SHAFFNER7 and schneidermic0 authored Feb 26, 2025
1 parent eefe23f commit e734fbc
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 0 deletions.
5 changes: 5 additions & 0 deletions file-formats/advc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# ADVC File Format

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<name>.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)
66 changes: 66 additions & 0 deletions file-formats/advc/advc-v1.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
7 changes: 7 additions & 0 deletions file-formats/advc/examples/z_aff_example_advc.advc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "ADVC Example Object",
"originalLanguage": "en"
}
}
20 changes: 20 additions & 0 deletions file-formats/advc/type/zif_aff_advc_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
INTERFACE zif_aff_advc_v1
PUBLIC.

TYPES:
"! <p class="shorttext">App Variant</p>
"! App variant
BEGIN OF ty_main,
"! <p class="shorttext">Format Version</p>
"! Format version
"! $required
format_version TYPE zif_aff_types_v1=>ty_format_version,

"! <p class="shorttext">Header</p>
"! Header
"! $required
header TYPE zif_aff_types_v1=>ty_header_100,

END OF ty_main.

ENDINTERFACE.
7 changes: 7 additions & 0 deletions file-formats/advc/type/zif_aff_advc_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "AFF type for ADVC (cross-client app variant)",
"originalLanguage": "en"
}
}

0 comments on commit e734fbc

Please sign in to comment.