SAP / abap-file-formats

File formats that define and specify the file representation for ABAP development objects
MIT License
58 stars 55 forks source link

Validation of JSON data for multiple formatVersions #508

Closed albertmink closed 2 months ago

albertmink commented 1 year ago

Maybe we can have a abcd.json JSON Schema that can validate JSON data of type abcd of any available formatVersion. We want to reuse the existing abcd-vX.json schema and not replace them.

See https://github.com/larshp/json-versioning and discussion in https://github.com/SAP/abap-file-formats/issues/502 Also https://gist.github.com/albertmink/86e8fd13e1f28ab653c5abcc8471947b

larshp commented 2 months ago

thinking of doing the "compilation" in https://github.com/abaplint/vscode-abap-file-formats and pushing the multi version json schemas to there, then it can be tested, can always move it later

larshp commented 2 months ago

0.1.10 published, https://marketplace.visualstudio.com/items?itemName=larshp.vscode-abap-file-formats

larshp commented 2 months ago

all good, test by changing the format version

image

changed, image

larshp commented 2 months ago

and unknown version,

image

albertmink commented 2 months ago

Thanks. Closing here.