gnostic
gnostic copied to clipboard
A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.
Environment: go version go1.13 linux/amd64 libprotoc 3.14.0 Here follows my operation step: 1. git clone https://github.com/googleapis/gnostic 2. cd gnostic 3. make And then errors happened: ``` # github.com/googleapis/gnostic/metrics/vocabulary metrics/vocabulary/vocabulary.go:71:29: cannot...
When I tried a variation of step 5 of the README.md, petstore.pb was not created in the current directory. See the following shell transcript (newlines added for clarity): ``` Jeff:gRPC...
if i'm fill needed struct that generated from protobuf openapi v3 and use jsonpb ad encoder - does it provide valid openapi v3 file?
Might be an exotic use-case due to these factors: 1. Gnostic is running in a docker container 2. The input OpenAPI spec file is on a mounted bind volume 3....
I compiled petstore https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml ``` gnostic petstore.json --pb-out=. ``` in my python ```python from sys import argv import os # from gnostic.discovery_pb2 import Request, Response from gnostic.OpenAPIv3_pb2 import Document from...
Hi, I'm super excited to use this pkg, but I'm having lots of issues. I'd also like to help where I can. I'm using this open api v3 spec https://us-east-1-production-zcv2-api.ziff.ai/_schema...
Any plans to add streaming support? For instance if the OpenAPI definition had a response type schema component of type array could the automatically produce a proto RPC that used...
See comment on https://github.com/googleapis/gnostic/commit/896953e6749863beec38e27029c804e88c3144b8#commitcomment-37259173
With #194, gnostic upgrades its dependency on yaml.v2 to yaml.v3. This means that code that calls the automatically-generated NewDocument functions will break, because they take yaml.v2 data structures as input....
Noted by @noahdietz in comments on #166: - https://github.com/googleapis/gnostic/pull/166#discussion_r415920689 Suggestion: put a return in this conditional block. `return x, compiler.NewErrorGroupOrNil(errors)`. This keeps the error flow indented but the following "green...