Open larshp opened 3 years ago
Sure ;)
I'm leaning towards defining the data structures in ABAP, example: https://gist.github.com/larshp/a9556931fb454ae372ef045e0ed8b21a (don't look much at the actual fields, but the structure/setup instead)
We are ABAP biased, the purpose and target is ABAP, people defining the data structures will know ABAP.
Actually, I like this idea.
First consider the idea, then after that, we can talk about how to practically achieve this 😁
Some suggestions discussed,
Just to mention it: As soon as we commit a single line of ABAP source, we have to decide on a serialization format. This is a recursive hen-egg-problem. This is not just about the inner structure (target language version, metadata format) of files but also about file names and directory structures.
Ultimate question is: a) Shall this be agnostic to concrete Git client implementations (abapGit vs. gCTS)? b) Or shall this be readily importable with a concrete client?
Since folder structures of abapGit and gCTS are currently incompatible, (b) would at best work for one concrete client. On the other hand, (a) would not be importable out-of-the-box without additional adaptations, either directly in the import logic of the respective Git clients, or via some "boiler plate" repository that federates the plain files from abap-file-formats into the right folder structure of either abapGit or gCTS...
first priority: do the design, not looking at tooling too much
for abapGit we can have changes out to anyone in short time, and also command line git will always work, which enables everyone to use their favorite editor(vscode?)
I started https://github.com/larshp/abap-transmogrify some time ago
proof of concept: https://github.com/abap-openapi/abap-type-to-json-schema will now traverse a ABAP structure via RTTI, and runs on both NodeJS and ABAP AS
Cool. We plan to look into the conversion of an ABAP type to Json schema in on of our next sprints as well.
Just adding a link to our ABAP file formats tools repository: https://github.com/SAP/abap-file-formats-tools
It provides ABAP code to generate JSON schema file from an AFF ABAP type.
we can talk about this in the next call