Hi,
I am working on adding a new command to controller-tools to generate a not-flattened swagger specification. It re-uses the markers of the crd command.
The main goal is to have a swagger specification that exposes the internal model, this is important for code generation tools (like kuberig that generates kotlin code) for various reasons but the main reasons:
- preserve names of the object types
- reuse of object types is clear
Is there interest in adding this?
I got a first version working for tektoncd/pipeline. It is particularly interesting because it doesn't share anything at all of the model in the CRD definitions.
ps: This is the first time I am doing anything with GO, so if it is not done in a GO-way you know why.
Thanks,
Tom