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

Folder structure #109

Closed larshp closed 2 years ago

larshp commented 3 years ago

Example: https://github.com/SAP/abap-file-formats/tree/main/file-formats/chkc

it contains image

the source is under type and the first file in the folder is the auto generated json schema file

Suggest: A: Move the ABAP source to the root of the object type folder B: Move the auto generated json schema to a new folder generated under the object type C: Change the filename of the auto generated json schema, eg zif_atc_aff_chkc_v1.json to make it easier for users to tell the relationship between files

larshp commented 3 years ago

alternatively, move the ABAP type to the same folder level as the generated JSON

albertmink commented 3 years ago

We could start with option B. The folder name would suggest not to edit the json-schema manually as raised in #110.

schneidermic0 commented 3 years ago

As long as we keep the reference to the schema file (jn the $schema field) we should be careful with names and folders.

I would prefer not to use the interface name for the json-schema file. At least as long as we are referring to it in the files. But we should add the version (like chkc-v1.json or chic.v1.json)

But, maybe, it makes sense to move all generated json schemas to one dedicated folder and keep the folder structure of object types only for the ABAP types, the format documentation and the example. E.g., /schema/chkc-v1.json.

larshp commented 3 years ago

I'd like to remove the $schema field and add a version field instead, https://github.com/SAP/abap-file-formats/issues/53

schneidermic0 commented 3 years ago

Let's continue with this issue as soon as #53 is solved.

albertmink commented 2 years ago

Update:

I feel as if the above discussion is outdated, due to the evolution of the repository and will close the issue. Feel free to reopen the issue :wave: