-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 abaplint / abaplintKeyword should be upper case: "interface"
|
||
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, | ||
"! <p class="shorttext">Header</p> | ||
"! Header | ||
"! $required | ||
header TYPE zif_aff_types_v1=>ty_header_60_cloud, | ||
"! <p class="shorttext">Namespace Details</p> | ||
"! Namespace details | ||
"! $required | ||
namespace_details TYPE ty_namespace_details, | ||
END OF ty_main. | ||
endinterface. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |