Skip to content

Commit

Permalink
Removed requirements for language field (#310)
Browse files Browse the repository at this point in the history
Co-authored-by: Albert Mink <albert.mink@sap.com>
  • Loading branch information
Markus1812 and albertmink authored Apr 10, 2024
1 parent c15a8b1 commit c0be9e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/zcl_aff_writer_json_schema.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand Down
8 changes: 2 additions & 6 deletions src/zcl_aff_writer_json_schema.clas.testclasses.abap
Original file line number Diff line number Diff line change
Expand Up @@ -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` )
Expand Down Expand Up @@ -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",` )
Expand Down

0 comments on commit c0be9e4

Please sign in to comment.