Skip to content

Commit

Permalink
[AIFN] Add new object type AIFN
Browse files Browse the repository at this point in the history
  • Loading branch information
D047539 committed Aug 27, 2024
1 parent b41b6a2 commit 6489127
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 0 deletions.
5 changes: 5 additions & 0 deletions file-formats/aifn/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# AIFN File Format

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<name>.aifn.json` | 1 | [`zif_aff_aifn_v1.intf.abap`](./type/zif_aff_aifn_v1.intf.abap) | [`aifn-v1.json`](./aifn-v1.json) | [`z_aff_example_aifn.aifn.json`](./examples/z_aff_example_aifn.aifn.json)
81 changes: 81 additions & 0 deletions file-formats/aifn/aifn-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"$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/aifn/aifn-v1.json",
"title": "Recipient",
"description": "Recipient",
"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"
]
},
"namespaceDetails": {
"title": "Namespace Details",
"description": "Namespace details",
"type": "object",
"properties": {
"aifNamespace": {
"title": "AIF Namespace",
"description": "AIF Namespace",
"type": "string",
"maxLength": 6
}
},
"additionalProperties": false,
"required": [
"aifNamespace"
]
}
},
"additionalProperties": false,
"required": [
"formatVersion",
"header",
"namespaceDetails"
]
}
11 changes: 11 additions & 0 deletions file-formats/aifn/examples/z_aff_example_aifn.aifn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"formatVersion": "1",
"header": {
"description": "Example AIFN for ABAP File Format",
"originalLanguage": "en",
"abapLanguageVersion": "cloudDevelopment"
},
"namespaceDetails":{
"aifNamespace": "/AIFT"
}
}
27 changes: 27 additions & 0 deletions file-formats/aifn/type/zif_aff_aifn_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
interface zif_aff_aifn_v1
public .

Check failure on line 2 in file-formats/aifn/type/zif_aff_aifn_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Keyword should be upper case: "interface"

https://rules.abaplint.org/keyword_case

Check failure on line 2 in file-formats/aifn/type/zif_aff_aifn_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Remove space before "," or "."

https://rules.abaplint.org/space_before_dot
TYPES:
"! <p class="shorttext">Namespace Details</p>
"! Namespace details
BEGIN OF ty_namespace_details,
"! <p class="shorttext">AIF Namespace</p>
"! AIF Namespace
"! $required
aif_namespace TYPE c LENGTH 6,
END OF ty_namespace_details,

"! <p class="shorttext">Recipient</p>
"! Recipient
BEGIN OF ty_main,
"! $required
format_version TYPE zif_aff_types_v1=>ty_format_version,

Check failure on line 17 in file-formats/aifn/type/zif_aff_aifn_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 25

https://rules.abaplint.org/align_type_expressions
"! <p class="shorttext">Header</p>
"! Header
"! $required
header TYPE zif_aff_types_v1=>ty_header_60_cloud,

Check failure on line 21 in file-formats/aifn/type/zif_aff_aifn_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 25

https://rules.abaplint.org/align_type_expressions
"! <p class="shorttext">Namespace Details</p>
"! Namespace details
"! $required
namespace_details TYPE ty_namespace_details,

Check failure on line 25 in file-formats/aifn/type/zif_aff_aifn_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 25

https://rules.abaplint.org/align_type_expressions
END OF ty_main.
endinterface.

Check failure on line 27 in file-formats/aifn/type/zif_aff_aifn_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Keyword should be upper case: "endinterface"

https://rules.abaplint.org/keyword_case
7 changes: 7 additions & 0 deletions file-formats/aifn/type/zif_aff_aifn_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "AFF type for AIFN (Namespace)",
"originalLanguage": "en"
}
}

0 comments on commit 6489127

Please sign in to comment.