From a87360cc6b8fa583efd92545747dd13d200ee3da Mon Sep 17 00:00:00 2001 From: Markus1812 Date: Tue, 9 Apr 2024 14:18:15 +0000 Subject: [PATCH] Removed requirements for language field --- src/zcl_aff_writer_json_schema.clas.abap | 2 -- src/zcl_aff_writer_json_schema.clas.testclasses.abap | 8 ++------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/zcl_aff_writer_json_schema.clas.abap b/src/zcl_aff_writer_json_schema.clas.abap index a01ec3eb..d86488dc 100644 --- a/src/zcl_aff_writer_json_schema.clas.abap +++ b/src/zcl_aff_writer_json_schema.clas.abap @@ -1043,8 +1043,6 @@ CLASS zcl_aff_writer_json_schema IMPLEMENTATION. METHOD handle_language_field. write_tag( `"minLength": 2,` ). - write_tag( `"maxLength": 2,` ). - write_tag( `"pattern": "^[a-z]+$",` ). ENDMETHOD. diff --git a/src/zcl_aff_writer_json_schema.clas.testclasses.abap b/src/zcl_aff_writer_json_schema.clas.testclasses.abap index 9ccd9e4d..8df94c74 100644 --- a/src/zcl_aff_writer_json_schema.clas.testclasses.abap +++ b/src/zcl_aff_writer_json_schema.clas.testclasses.abap @@ -610,9 +610,7 @@ CLASS ltcl_json_writer_abap_doc IMPLEMENTATION. ( ` "title": "Original Language",` ) ( ` "description": "Original language of the ABAP object",` ) ( ` "type": "string",` ) -( ` "minLength": 2,` ) -( ` "maxLength": 2,` ) -( ` "pattern": "^[a-z]+$"` ) +( ` "minLength": 2` ) ( ` }` ) ( ` },` ) ( ` "additionalProperties": false` ) @@ -1249,9 +1247,7 @@ CLASS ltcl_json_writer_abap_doc IMPLEMENTATION. ( ` "title": "Original Language",` ) ( ` "description": "Original language of the ABAP object",` ) ( ` "type": "string",` ) -( ` "minLength": 2,` ) -( ` "maxLength": 2,` ) -( ` "pattern": "^[a-z]+$"` ) +( ` "minLength": 2` ) ( ` },` ) ( ` "abapLanguageVersion": {` ) ( ` "title": "ABAP Language Version",` )