From 13d0b75f8070cce8c14698dbd9e5d61ed6f1ce08 Mon Sep 17 00:00:00 2001 From: Smartynkov <98896769+Smartynkov@users.noreply.github.com> Date: Tue, 15 Apr 2025 15:26:28 +0300 Subject: [PATCH 1/8] Add file format for AIFA --- file-formats/aifa/README.md | 5 + file-formats/aifa/aifa-v1.json | 186 ++++++++++++++++++ .../aifa/type/zif_aff_aifa_v1.intf.abap | 102 ++++++++++ .../aifa/type/zif_aff_aifa_v1.intf.json | 7 + 4 files changed, 300 insertions(+) create mode 100644 file-formats/aifa/README.md create mode 100644 file-formats/aifa/aifa-v1.json create mode 100644 file-formats/aifa/type/zif_aff_aifa_v1.intf.abap create mode 100644 file-formats/aifa/type/zif_aff_aifa_v1.intf.json diff --git a/file-formats/aifa/README.md b/file-formats/aifa/README.md new file mode 100644 index 000000000..20df7edcf --- /dev/null +++ b/file-formats/aifa/README.md @@ -0,0 +1,5 @@ +# AIFA File Format + +File | Cardinality | Definition | Schema | Example +:--- | :--- | :--- | :--- | :--- +`.aifa.json` | 1 | [`zif_aff_aifa_v1.intf.abap`](./type/zif_aff_aifa_v1.intf.abap) | [`aifa-v1.json`](./aifa-v1.json) diff --git a/file-formats/aifa/aifa-v1.json b/file-formats/aifa/aifa-v1.json new file mode 100644 index 000000000..309518e5d --- /dev/null +++ b/file-formats/aifa/aifa-v1.json @@ -0,0 +1,186 @@ +{ + "$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/aifa/aifa-v1.json", + "title": "Action", + "description": "Action", + "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": { + "namespace": { + "title": "Namespace", + "description": "Namespace", + "type": "string", + "maxLength": 15 + }, + "aifAction": { + "title": "AIF Action", + "description": "AIF action", + "type": "string", + "maxLength": 20 + }, + "mainCompType": { + "title": "Main Component Type", + "description": "Main component type", + "type": "string", + "maxLength": 30 + }, + "class": { + "title": "Class", + "description": "Class", + "type": "string", + "maxLength": 30 + } + }, + "additionalProperties": false, + "required": [ + "namespace", + "aifAction" + ] + }, + "fieldRestore": { + "title": "Fields To Restore Assignment", + "description": "Fields to restore assignment", + "type": "array", + "items": { + "title": "Field To Restore", + "description": "Field to restore", + "type": "object", + "properties": { + "fieldName": { + "title": "Field Name", + "description": "Field name", + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false + } + }, + "checkData": { + "title": "Checks Assignment", + "description": "Checks assignment", + "type": "array", + "items": { + "title": "Check Data", + "description": "Check data", + "type": "object", + "properties": { + "number": { + "title": "Number", + "description": "Number", + "type": "string", + "maxLength": 3, + "pattern": "^[0-9]+$" + }, + "checkObjName": { + "title": "Check", + "description": "(type /AIF/CHECK_OBJ_NAME ) Check", + "type": "string", + "maxLength": 30 + }, + "checkIgnore": { + "title": "Check Behavior", + "description": "Check behavior", + "type": "string", + "enum": [ + "triggerError", + "ignoreData" + ], + "enumTitles": [ + "Treat As An Error", + "Ignore Data" + ], + "enumDescriptions": [ + "Treat as error if check in not successful", + "Ignore data if check is not successful" + ], + "default": "ignoreData" + }, + "fieldName": { + "title": "Field Name", + "description": "Field name", + "type": "array", + "items": { + "title": "Field To Check", + "description": "Field to check", + "type": "object", + "properties": { + "fieldName": { + "title": "Field Name", + "description": "Field name", + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false, + "required": [ + "number", + "checkObjName" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "formatVersion", + "header", + "generalInformation" + ] +} diff --git a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap new file mode 100644 index 000000000..de3281678 --- /dev/null +++ b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap @@ -0,0 +1,102 @@ +INTERFACE zif_aff_aifa_v1 + PUBLIC. + + CONSTANTS: + BEGIN OF co_error_handling, + "!

Treat As An Error

+ "! Treat as error if check in not successful + trigger_error TYPE c LENGTH 1 VALUE '', + "!

Ignore Data

+ "! Ignore data if check is not successful + ignore_data TYPE c LENGTH 1 VALUE 'I', + END OF co_error_handling. + + TYPES: + "! $values { @link zif_aff_aifa_v1.data:co_error_handling } + "! $default { @link zif_aff_aifa_v1.data:co_error_handling.ignore_data } + error_handling_type TYPE c LENGTH 1, + + "!

Field To Check

+ "! Field to check + BEGIN OF ty_fields_check, + "!

Field Name

+ "! Field name + field_name TYPE c LENGTH 255, + END OF ty_fields_check, + "!

Fields To Restore

+ "! Fields to restore + tty_fields_check TYPE STANDARD TABLE OF ty_fields_check WITH DEFAULT KEY. + + TYPES: + "!

General Information

+ "! General information + BEGIN OF ty_general_information, + "!

Namespace

+ "! Namespace + "! $required + namespace TYPE c LENGTH 15, + "!

AIF Action

+ "! AIF action + "! $required + aif_action TYPE c LENGTH 20, + "!

Main Component Type

+ "! Main component type + main_comp_type TYPE zif_aff_types_v1=>ty_object_name_30, + "!

Class

+ "! Class + class TYPE zif_aff_types_v1=>ty_object_name_30, + END OF ty_general_information, + + "!

Check Data

+ "! Check data + BEGIN OF ty_check_data, + "!

Number

+ "! Number + "! $required + number TYPE n LENGTH 3, + "!

Check

+ "! (type /AIF/CHECK_OBJ_NAME ) + "! Check + "! $required + check_obj_name TYPE zif_aff_types_v1=>ty_object_name_30, + "!

Check Behavior

+ "! Check behavior + check_ignore TYPE error_handling_type, + "!

Field Name

+ "! Field name + field_name TYPE tty_fields_check, + END OF ty_check_data, + tty_check_data TYPE STANDARD TABLE OF ty_check_data WITH DEFAULT KEY, + + "!

Field To Restore

+ "! Field to restore + BEGIN OF ty_fields_restore, + "!

Field Name

+ "! Field name + field_name TYPE c LENGTH 255, + END OF ty_fields_restore, + "!

Fields To Restore

+ "! Fields to restore + tty_fields_restore TYPE STANDARD TABLE OF ty_fields_restore WITH DEFAULT KEY, + + "!

Action

+ "! Action + BEGIN OF ty_main, + "! $required + format_version TYPE zif_aff_types_v1=>ty_format_version, + "!

Header

+ "! Header + "! $required + header TYPE zif_aff_types_v1=>ty_header_60_cloud, + "!

General Information

+ "! General information + "! $required + general_information TYPE ty_general_information, + "!

Fields To Restore Assignment

+ "! Fields to restore assignment + field_restore TYPE tty_fields_restore, + "!

Checks Assignment

+ "! Checks assignment + check_data TYPE tty_check_data, + END OF ty_main. +ENDINTERFACE. diff --git a/file-formats/aifa/type/zif_aff_aifa_v1.intf.json b/file-formats/aifa/type/zif_aff_aifa_v1.intf.json new file mode 100644 index 000000000..5e857eabb --- /dev/null +++ b/file-formats/aifa/type/zif_aff_aifa_v1.intf.json @@ -0,0 +1,7 @@ +{ + "formatVersion": "1", + "header": { + "description": "AFF Type for AIFA (Action)", + "originalLanguage": "en" + } +} From 32e61666830b5e335e9f4274d01bf7dc6f632075 Mon Sep 17 00:00:00 2001 From: Smartynkov <98896769+Smartynkov@users.noreply.github.com> Date: Tue, 15 Apr 2025 16:13:55 +0300 Subject: [PATCH 2/8] aifa types naming fix --- file-formats/aifa/aifa-v1.json | 8 ++-- .../aifa/type/zif_aff_aifa_v1.intf.abap | 37 ++++++++++--------- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/file-formats/aifa/aifa-v1.json b/file-formats/aifa/aifa-v1.json index 309518e5d..2243b274b 100644 --- a/file-formats/aifa/aifa-v1.json +++ b/file-formats/aifa/aifa-v1.json @@ -114,8 +114,8 @@ "description": "Checks assignment", "type": "array", "items": { - "title": "Check Data", - "description": "Check data", + "title": "Check Details", + "description": "Check details", "type": "object", "properties": { "number": { @@ -127,11 +127,11 @@ }, "checkObjName": { "title": "Check", - "description": "(type /AIF/CHECK_OBJ_NAME ) Check", + "description": "Check", "type": "string", "maxLength": 30 }, - "checkIgnore": { + "checkBehaviour": { "title": "Check Behavior", "description": "Check behavior", "type": "string", diff --git a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap index de3281678..c55d20e28 100644 --- a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap +++ b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap @@ -23,9 +23,9 @@ INTERFACE zif_aff_aifa_v1 "! Field name field_name TYPE c LENGTH 255, END OF ty_fields_check, - "!

Fields To Restore

- "! Fields to restore - tty_fields_check TYPE STANDARD TABLE OF ty_fields_check WITH DEFAULT KEY. + "!

Fields To Check

+ "! Fields to check + ty_fields_checks TYPE STANDARD TABLE OF ty_fields_check WITH DEFAULT KEY. TYPES: "!

General Information

@@ -47,37 +47,38 @@ INTERFACE zif_aff_aifa_v1 class TYPE zif_aff_types_v1=>ty_object_name_30, END OF ty_general_information, - "!

Check Data

- "! Check data - BEGIN OF ty_check_data, + "!

Check Details

+ "! Check details + BEGIN OF ty_check_details, "!

Number

"! Number "! $required - number TYPE n LENGTH 3, + number TYPE n LENGTH 3, "!

Check

- "! (type /AIF/CHECK_OBJ_NAME ) "! Check "! $required - check_obj_name TYPE zif_aff_types_v1=>ty_object_name_30, + check_obj_name TYPE zif_aff_types_v1=>ty_object_name_30, "!

Check Behavior

"! Check behavior - check_ignore TYPE error_handling_type, + check_behaviour TYPE error_handling_type, "!

Field Name

"! Field name - field_name TYPE tty_fields_check, - END OF ty_check_data, - tty_check_data TYPE STANDARD TABLE OF ty_check_data WITH DEFAULT KEY, + field_name TYPE ty_fields_checks, + END OF ty_check_details, + "!

Check Data

+ "! Check data + ty_check_data TYPE STANDARD TABLE OF ty_check_details WITH DEFAULT KEY, "!

Field To Restore

"! Field to restore - BEGIN OF ty_fields_restore, + BEGIN OF ty_field_restore, "!

Field Name

"! Field name field_name TYPE c LENGTH 255, - END OF ty_fields_restore, + END OF ty_field_restore, "!

Fields To Restore

"! Fields to restore - tty_fields_restore TYPE STANDARD TABLE OF ty_fields_restore WITH DEFAULT KEY, + ty_fields_restore TYPE STANDARD TABLE OF ty_field_restore WITH DEFAULT KEY, "!

Action

"! Action @@ -94,9 +95,9 @@ INTERFACE zif_aff_aifa_v1 general_information TYPE ty_general_information, "!

Fields To Restore Assignment

"! Fields to restore assignment - field_restore TYPE tty_fields_restore, + field_restore TYPE ty_fields_restore, "!

Checks Assignment

"! Checks assignment - check_data TYPE tty_check_data, + check_data TYPE ty_check_data, END OF ty_main. ENDINTERFACE. From 911d4ecbd3737222557e55224985dbd841e98532 Mon Sep 17 00:00:00 2001 From: Smartynkov <98896769+Smartynkov@users.noreply.github.com> Date: Tue, 15 Apr 2025 16:28:22 +0300 Subject: [PATCH 3/8] error handling fix --- file-formats/aifa/type/zif_aff_aifa_v1.intf.abap | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap index c55d20e28..01de36277 100644 --- a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap +++ b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap @@ -1,6 +1,9 @@ INTERFACE zif_aff_aifa_v1 PUBLIC. + "! $values { @link zif_aff_aifa_v1.data:co_error_handling } + "! $default { @link zif_aff_aifa_v1.data:co_error_handling.ignore_data } + TYPES error_handling_type TYPE c LENGTH 1. CONSTANTS: BEGIN OF co_error_handling, "!

Treat As An Error

@@ -12,10 +15,6 @@ INTERFACE zif_aff_aifa_v1 END OF co_error_handling. TYPES: - "! $values { @link zif_aff_aifa_v1.data:co_error_handling } - "! $default { @link zif_aff_aifa_v1.data:co_error_handling.ignore_data } - error_handling_type TYPE c LENGTH 1, - "!

Field To Check

"! Field to check BEGIN OF ty_fields_check, @@ -100,4 +99,5 @@ INTERFACE zif_aff_aifa_v1 "! Checks assignment check_data TYPE ty_check_data, END OF ty_main. + ENDINTERFACE. From ef11b50e17c1321a04af4f24bf0ba0b09bc9e9ec Mon Sep 17 00:00:00 2001 From: Smartynkov <98896769+Smartynkov@users.noreply.github.com> Date: Tue, 15 Apr 2025 16:36:13 +0300 Subject: [PATCH 4/8] lint fix --- file-formats/aifa/type/zif_aff_aifa_v1.intf.abap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap index 01de36277..73b1845e2 100644 --- a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap +++ b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap @@ -3,7 +3,7 @@ INTERFACE zif_aff_aifa_v1 "! $values { @link zif_aff_aifa_v1.data:co_error_handling } "! $default { @link zif_aff_aifa_v1.data:co_error_handling.ignore_data } - TYPES error_handling_type TYPE c LENGTH 1. + TYPES ty_error_handling_type TYPE c LENGTH 1. CONSTANTS: BEGIN OF co_error_handling, "!

Treat As An Error

@@ -59,7 +59,7 @@ INTERFACE zif_aff_aifa_v1 check_obj_name TYPE zif_aff_types_v1=>ty_object_name_30, "!

Check Behavior

"! Check behavior - check_behaviour TYPE error_handling_type, + check_behaviour TYPE ty_error_handling_type, "!

Field Name

"! Field name field_name TYPE ty_fields_checks, From f8e0ef12bc6eccfd24eb6bb8f22123347b2d6d35 Mon Sep 17 00:00:00 2001 From: Smartynkov <98896769+Smartynkov@users.noreply.github.com> Date: Wed, 16 Apr 2025 17:39:35 +0300 Subject: [PATCH 5/8] small adjustments --- file-formats/aifa/aifa-v1.json | 28 ++++++------- .../aifa/type/zif_aff_aifa_v1.intf.abap | 42 +++++++++---------- 2 files changed, 34 insertions(+), 36 deletions(-) diff --git a/file-formats/aifa/aifa-v1.json b/file-formats/aifa/aifa-v1.json index 2243b274b..7e3abb4d1 100644 --- a/file-formats/aifa/aifa-v1.json +++ b/file-formats/aifa/aifa-v1.json @@ -71,7 +71,7 @@ "type": "string", "maxLength": 20 }, - "mainCompType": { + "mainComponentType": { "title": "Main Component Type", "description": "Main component type", "type": "string", @@ -91,27 +91,26 @@ ] }, "fieldRestore": { - "title": "Fields To Restore Assignment", - "description": "Fields to restore assignment", + "title": "Fields To Restore", + "description": "Fields to restore", "type": "array", "items": { "title": "Field To Restore", "description": "Field to restore", "type": "object", "properties": { - "fieldName": { - "title": "Field Name", - "description": "Field name", - "type": "string", - "maxLength": 255 + "name": { + "title": "Name", + "description": "Name", + "type": "string" } }, "additionalProperties": false } }, "checkData": { - "title": "Checks Assignment", - "description": "Checks assignment", + "title": "Checks", + "description": "Checks", "type": "array", "items": { "title": "Check Details", @@ -140,11 +139,11 @@ "ignoreData" ], "enumTitles": [ - "Treat As An Error", + "Treat As Error", "Ignore Data" ], "enumDescriptions": [ - "Treat as error if check in not successful", + "Treat as error if check is not successful", "Ignore data if check is not successful" ], "default": "ignoreData" @@ -158,11 +157,10 @@ "description": "Field to check", "type": "object", "properties": { - "fieldName": { + "name": { "title": "Field Name", "description": "Field name", - "type": "string", - "maxLength": 255 + "type": "string" } }, "additionalProperties": false diff --git a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap index 73b1845e2..357442a0a 100644 --- a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap +++ b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap @@ -6,8 +6,8 @@ INTERFACE zif_aff_aifa_v1 TYPES ty_error_handling_type TYPE c LENGTH 1. CONSTANTS: BEGIN OF co_error_handling, - "!

Treat As An Error

- "! Treat as error if check in not successful + "!

Treat As Error

+ "! Treat as error if check is not successful trigger_error TYPE c LENGTH 1 VALUE '', "!

Ignore Data

"! Ignore data if check is not successful @@ -17,14 +17,14 @@ INTERFACE zif_aff_aifa_v1 TYPES: "!

Field To Check

"! Field to check - BEGIN OF ty_fields_check, + BEGIN OF ty_field_to_check, "!

Field Name

"! Field name - field_name TYPE c LENGTH 255, - END OF ty_fields_check, + name TYPE string, + END OF ty_field_to_check, "!

Fields To Check

"! Fields to check - ty_fields_checks TYPE STANDARD TABLE OF ty_fields_check WITH DEFAULT KEY. + ty_fields_to_check TYPE STANDARD TABLE OF ty_field_to_check WITH DEFAULT KEY. TYPES: "!

General Information

@@ -40,7 +40,7 @@ INTERFACE zif_aff_aifa_v1 aif_action TYPE c LENGTH 20, "!

Main Component Type

"! Main component type - main_comp_type TYPE zif_aff_types_v1=>ty_object_name_30, + main_component_type TYPE zif_aff_types_v1=>ty_object_name_30, "!

Class

"! Class class TYPE zif_aff_types_v1=>ty_object_name_30, @@ -62,22 +62,22 @@ INTERFACE zif_aff_aifa_v1 check_behaviour TYPE ty_error_handling_type, "!

Field Name

"! Field name - field_name TYPE ty_fields_checks, + field_name TYPE ty_fields_to_check, END OF ty_check_details, "!

Check Data

"! Check data - ty_check_data TYPE STANDARD TABLE OF ty_check_details WITH DEFAULT KEY, + ty_checks TYPE STANDARD TABLE OF ty_check_details WITH DEFAULT KEY, "!

Field To Restore

"! Field to restore - BEGIN OF ty_field_restore, - "!

Field Name

- "! Field name - field_name TYPE c LENGTH 255, - END OF ty_field_restore, + BEGIN OF ty_field_to_restore, + "!

Name

+ "! Name + name TYPE string, + END OF ty_field_to_restore, "!

Fields To Restore

"! Fields to restore - ty_fields_restore TYPE STANDARD TABLE OF ty_field_restore WITH DEFAULT KEY, + ty_fields_to_restore TYPE STANDARD TABLE OF ty_field_to_restore WITH DEFAULT KEY, "!

Action

"! Action @@ -92,12 +92,12 @@ INTERFACE zif_aff_aifa_v1 "! General information "! $required general_information TYPE ty_general_information, - "!

Fields To Restore Assignment

- "! Fields to restore assignment - field_restore TYPE ty_fields_restore, - "!

Checks Assignment

- "! Checks assignment - check_data TYPE ty_check_data, + "!

Fields To Restore

+ "! Fields to restore + field_restore TYPE ty_fields_to_restore, + "!

Checks

+ "! Checks + check_data TYPE ty_checks, END OF ty_main. ENDINTERFACE. From 54705fe8d0e22d6cf09d56cc92db989be06adb47 Mon Sep 17 00:00:00 2001 From: Smartynkov <98896769+Smartynkov@users.noreply.github.com> Date: Wed, 16 Apr 2025 17:52:06 +0300 Subject: [PATCH 6/8] lint fix --- file-formats/aifa/type/zif_aff_aifa_v1.intf.abap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap index 357442a0a..c6c813174 100644 --- a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap +++ b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap @@ -33,17 +33,17 @@ INTERFACE zif_aff_aifa_v1 "!

Namespace

"! Namespace "! $required - namespace TYPE c LENGTH 15, + namespace TYPE c LENGTH 15, "!

AIF Action

"! AIF action "! $required - aif_action TYPE c LENGTH 20, + aif_action TYPE c LENGTH 20, "!

Main Component Type

"! Main component type main_component_type TYPE zif_aff_types_v1=>ty_object_name_30, "!

Class

"! Class - class TYPE zif_aff_types_v1=>ty_object_name_30, + class TYPE zif_aff_types_v1=>ty_object_name_30, END OF ty_general_information, "!

Check Details

From 855885c5444efd5da12e1f7a0f25d742e36441a8 Mon Sep 17 00:00:00 2001 From: Smartynkov <98896769+Smartynkov@users.noreply.github.com> Date: Mon, 28 Apr 2025 13:21:50 +0300 Subject: [PATCH 7/8] Number (Numeric_id) adjustments --- file-formats/aifa/aifa-v1.json | 18 +++++++++--------- .../aifa/type/zif_aff_aifa_v1.intf.abap | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/file-formats/aifa/aifa-v1.json b/file-formats/aifa/aifa-v1.json index 7e3abb4d1..7ac2f3114 100644 --- a/file-formats/aifa/aifa-v1.json +++ b/file-formats/aifa/aifa-v1.json @@ -117,19 +117,19 @@ "description": "Check details", "type": "object", "properties": { - "number": { - "title": "Number", - "description": "Number", - "type": "string", - "maxLength": 3, - "pattern": "^[0-9]+$" - }, "checkObjName": { "title": "Check", "description": "Check", "type": "string", "maxLength": 30 }, + "numericId": { + "title": "Numeric ID", + "description": "Numeric id", + "type": "string", + "maxLength": 3, + "pattern": "^[0-9]+$" + }, "checkBehaviour": { "title": "Check Behavior", "description": "Check behavior", @@ -169,8 +169,8 @@ }, "additionalProperties": false, "required": [ - "number", - "checkObjName" + "checkObjName", + "numericId" ] } } diff --git a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap index c6c813174..f772fad8f 100644 --- a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap +++ b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap @@ -49,14 +49,14 @@ INTERFACE zif_aff_aifa_v1 "!

Check Details

"! Check details BEGIN OF ty_check_details, - "!

Number

- "! Number - "! $required - number TYPE n LENGTH 3, "!

Check

"! Check "! $required check_obj_name TYPE zif_aff_types_v1=>ty_object_name_30, + "!

Numeric ID

+ "! Numeric id + "! $required + numeric_id TYPE n LENGTH 3, "!

Check Behavior

"! Check behavior check_behaviour TYPE ty_error_handling_type, From a33f7cd4cd3e4a6effa470e56daf7200e3aa3297 Mon Sep 17 00:00:00 2001 From: Smartynkov <98896769+Smartynkov@users.noreply.github.com> Date: Mon, 28 Apr 2025 13:25:50 +0300 Subject: [PATCH 8/8] lint_fix --- file-formats/aifa/type/zif_aff_aifa_v1.intf.abap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap index f772fad8f..a46b389ef 100644 --- a/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap +++ b/file-formats/aifa/type/zif_aff_aifa_v1.intf.abap @@ -56,7 +56,7 @@ INTERFACE zif_aff_aifa_v1 "!

Numeric ID

"! Numeric id "! $required - numeric_id TYPE n LENGTH 3, + numeric_id TYPE n LENGTH 3, "!

Check Behavior

"! Check behavior check_behaviour TYPE ty_error_handling_type,