oag
oag copied to clipboard
Support OpenAPI 3.0.0
Add support for generating code from OpenAPI 3.0.0 documents.
The latest version of OpenAPI should be the default internal representation of documents, so this change should look something like:
- add a new
spec.gofile to the openapi package, defining the document structure, and how to parse it - teach the
openapi/v2package (or a new package) how to convert from v2 to v3 - teach the
openapipackage how to detect document types, and use the appropriate parser - convert the rest of the code to reference types from
openapiinstead ofopenapi/v2.