-
-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Labels
enhancementNew feature or requestNew feature or request
Description
from user point of view, I'm thinking what I'd like, hope this can bring some new ideas, or you can think of this as a feature request
a probable overview of the workflow:
- write go struct
- define tag ( protobuf tag example ) ( may similar to deepcopy-gen , genearte an extra go file )
- or comments(kubebuilder marks)
- or multiline comments(swag, I don't much like this way though)
- generate go code(an extra go file) (example openapi-gen)
- generate the final model (document.BuildV3Model()) from go code ( example )
- serve such json or yaml with http handler ( example )
some relate project I would like to libopenapi to be harmony with:
- https://google.aip.dev/
- https://github.com/googleapis/gapic-generator ( archived though )
- https://github.com/googleapis/gapic-showcase/blob/main/schema/google/showcase/v1beta1/messaging.proto ( example protobuf define http stuff )
I'm thinking how could these all could work together, some kubernetes tool may have narrow scope, this where libopenapi could comes in ( a general rest api tool, provide simple method to generate openapi )
one idea, writing openapi.yaml are error prone
and I'd expect all things go code ( abstract away the detail )
decompose things to go code, and so I can compose the whole spec definition from go code, so maybe it will be more maintainable ( the whole process )
EwenQuim and kayandra
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request