Skip to content

Commit

Permalink
[EDCR] Add new object type for EDCR (#630)
Browse files Browse the repository at this point in the history
Co-authored-by: Markus <[email protected]>
Co-authored-by: Katharina Wurz <[email protected]>
  • Loading branch information
3 people authored Sep 27, 2024
1 parent e5de0f6 commit c8dfd4a
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 0 deletions.
5 changes: 5 additions & 0 deletions file-formats/edcr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# EDCR File Format

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<name>.edcr.json` | 1 | [`zif_aff_edcr_v1.intf.abap`](./type/zif_aff_edcr_v1.intf.abap) | [`edcr-v1.json`](./edcr-v1.json) | [`z_aff_example_edcr.edcr.json`](./examples/z_aff_example_edcr.edcr.json)
63 changes: 63 additions & 0 deletions file-formats/edcr/edcr-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"$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/edcr/edcr-v1.json",
"title": "Representation Type",
"description": "Representation type",
"type": "object",
"properties": {
"formatVersion": {
"title": "ABAP File Format Version",
"description": "The ABAP file 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
},
"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"
]
}
},
"additionalProperties": false,
"required": [
"formatVersion",
"header"
]
}
8 changes: 8 additions & 0 deletions file-formats/edcr/examples/z_aff_example_edcr.edcr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"formatVersion": "1",
"header": {
"description": "Example Representation",
"originalLanguage": "en",
"abapLanguageVersion": "cloudDevelopment"
}
}
16 changes: 16 additions & 0 deletions file-formats/edcr/type/zif_aff_edcr_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
INTERFACE zif_aff_edcr_v1
PUBLIC.

TYPES:
"! <p class="shorttext">Representation Type</p>
"! Representation type
BEGIN OF ty_main,
"! $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_60_cloud,
END OF ty_main.

ENDINTERFACE.
7 changes: 7 additions & 0 deletions file-formats/edcr/type/zif_aff_edcr_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "AFF type for EDCR",
"originalLanguage": "en"
}
}

0 comments on commit c8dfd4a

Please sign in to comment.