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

[EVTO] Add new object type EVTO #675

Merged
merged 8 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions file-formats/evto/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# EVTO File Format

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<name>.evto.json` | 1 | [`zif_aff_evto_v1.intf.abap`](./type/zif_aff_evto_v1.intf.abap) | [`evto-v1.json`](./evto-v1.json) | [`z_aff_example.evto.json`](./examples/z_aff_example.evto.json)
105 changes: 105 additions & 0 deletions file-formats/evto/evto-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"$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/evto/evto-v1.json",
"title": "Event Object",
"description": "Event Object",
"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"
]
},
"generalInformation": {
"title": "General Information",
"description": "General information",
"type": "object",
"properties": {
"sapObjectType": {
"title": "SAP Object Type",
"description": "SAP Object Type",
"type": "string",
"maxLength": 30
},
"majorVersion": {
"title": "Major Version",
"description": "Major version",
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"minorVersion": {
"title": "Minor Version",
"description": "Minor version",
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"patchVersion": {
"title": "Patch Version",
"description": "Patch version",
"type": "integer",
"minimum": 0,
"maximum": 2147483647
}
},
"additionalProperties": false,
"required": [
"sapObjectType",
"majorVersion",
"minorVersion",
"patchVersion"
]
}
},
"additionalProperties": false,
"required": [
"formatVersion",
"header",
"generalInformation"
]
}
13 changes: 13 additions & 0 deletions file-formats/evto/examples/z_aff_example.evto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"formatVersion": "1",
"header": {
"description": "Example Event Object.",
"originalLanguage": "en"
},
"generalInformation": {
"sapObjectType": "Z_AFF_EXAMPLE",
"majorVersion": 1,
"minorVersion": 0,
"patchVersion": 4
}
}
49 changes: 49 additions & 0 deletions file-formats/evto/type/zif_aff_evto_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
INTERFACE zif_aff_evto_v1
PUBLIC.

TYPES:
"! <p class="shorttext">General Information</p>
"! General information
BEGIN OF ty_general_information,
"! <p class="shorttext">SAP Object Type</p>
"! SAP Object Type
"! $required
sap_object_type TYPE c LENGTH 30,

"! <p class="shorttext">Major Version</p>
"! Major version
"! $minimum 1
schneidermic0 marked this conversation as resolved.
Show resolved Hide resolved
"! $required
major_version TYPE i,

"! <p class="shorttext">Minor Version</p>
"! Minor version
"! $minimum 0
"! $required
minor_version TYPE i,

"! <p class="shorttext">Patch Version</p>
"! Patch version
"! $minimum 0
"! $required
patch_version TYPE i,
END OF ty_general_information.

TYPES:
"! <p class="shorttext">Event Object</p>
"! Event Object
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,

"! <p class="shorttext">General Information</p>
"! General information
"! $required
general_information TYPE ty_general_information,
END OF ty_main.
ENDINTERFACE.
7 changes: 7 additions & 0 deletions file-formats/evto/type/zif_aff_evto_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "RAP EEE: Event Object AFF Type Interface",
"originalLanguage": "en"
}
}
Loading