gnostic
gnostic copied to clipboard
A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.
How does gnostic represent openapi enums so that a plugin (Ex. gnostic-generate-go) could leverage it to generate the correct go code? Looking at the surface.Model I dont see how we...
Some APIs may have non-valid OAS keys, and while it's probably not the goal of gnoistic to "make a client for every API", it might be worth discussing if we...
I tried the petstore example. Pets which is supposed to be an array of Pet, is being generated as an empty struct. Here is a dump of the Type ```...
I tried to run the following command to generate petstore.pb file ```sh ▶ gnostic --pb-out=. examples/v3.0/json/petstore.json ``` Then run report for the `petstore.pb` file. it gave ```sh ▶ report petstore.pb...
First thanks for working on a Golang project that understands/parses/validates multiple API specs! I am using gnostic to parse & validate OpenAPIv3 specs (and later to validate API responses). When...
Empty object responses are causing gnostic to produce invalid go stanzas: Given a schema response such as: ``` responses: '200': description: Any endpoint that yields "{}" content: application/json: schema: type:...
When a linter runs and finds no problems, if it doesn't return any messages, a user might think that it didn't run at all. Can we fix this by having...
Question about object properties from @wora: > Does OpenAPI depend on presence? e.g. for a property like "bool foo", does OpenAPI treat true, false, and null as 3 separate states?...
OpenAPI descriptions with large numbers of repeated $refs can take a long time to resolve. This is because we explicitly expand all $refs. For example, this runs much faster with...
According to https://developers.google.com/protocol-buffers/docs/proto3#json, Wrapper Types use the same representation in JSON as the wrapped primitive type. On this MR I Modify protoc-gen-openapi code to be able to parse Wrapper Types...