Skip to content

libopenapi to generate the model not just from bytes , but from go code too #225

@chinglinwen

Description

@chinglinwen

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:

  1. write go struct
  1. generate go code(an extra go file) (example openapi-gen)
  2. generate the final model (document.BuildV3Model()) from go code ( example )
  3. serve such json or yaml with http handler ( example )

some relate project I would like to libopenapi to be harmony with:

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 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions