gnostic
gnostic copied to clipboard
A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.
When a request has both path parameters and `body: "*"`, the path parameters are being repeated in the body in the resulting OpenAPI spec. Note how the following example has...
What you think about supporting https://github.com/isa-group/SLA4OAI-Specification/blob/main/versions/1.0.0-Draft.md ? My use-case - allow to specify in proto/openapi timeout for each endpoint
Hello there! Thanks for the magical tool! It took a while to get my head around but it is great! I was testing out the capability of the proto ->OpenAPIV3...
Thanks for this helpful tool. I come across this issue when I'm using protoc-gen-openapi plugin to generate OpenAPI3 specification from protobuf definition. I have a State type and fields of...
Hello, I have proto file which I want to convert to openapi3 spec. Is there a way to do that? Thank you
I need to define OpenAPI validation annotations on my API resources such as `minLength`, `minItems` and also specify the `required` fields e.x: ``` components: schemas: Resource: required: - foo -...
As far as I could see for now there is only Description field. https://github.com/google/gnostic/blob/0d229df22263603780ac551fabc99ea588fe4c95/cmd/protoc-gen-openapi/generator/openapi-v3.go#L467-L478
I noticed in the code generator for Schema.default, the only acceptable types are bool, string, float, and int. https://github.com/google/gnostic/blob/master/generate-gnostic/generate-compiler.go#L233-L257 The OpenAPI 3.0 schema defines that the default value can be...
i have proto file with { post: "/some/path/XXX?RqUID={RqUID}&RqTm={RqTm}"; body: "*"; }; so i think that generated swagger have RqUID and RqTm in path query parameters and other in body but...
COMPILE_PROTOS.sh contains instruction: `go install github.com/golang/protobuf/protoc-gen-go@latest` that fails with error: `can't load package: package github.com/golang/protobuf/protoc-gen-go@latest: can only use path@version syntax with 'go get'`