openapi2proto
openapi2proto copied to clipboard
A tool for generating Protobuf v3 schemas and gRPC service definitions from OpenAPI specifications
As the titles says, is it still maintained? There a few issues which really stops one from using it, like the missing Body parameters in OpenAPI 3.x
did openapi2proto handle openapiv3 requestBody keyword? generated go file lost all body parameters.
did openapi2proto handle openapiv3 requestBody keyword? generated go file lost all body parameters.my openapi like ` '/api/cardmanager/mockcard/{cardNo}': post: tags: - cardmanager - mockcard description: create mock user card operationId: CreateMockCard...
Fixes #128 and #82. Changes to make the Kubernetes fixture pass: - Ignore $ref declarations that are not strings - Allow primitive RPC return types - Update Kubernetes proto fixture...
### Reason It would be nice if the ability to add custom field options. ### Example **input** ``` Config: type: object required: - config properties: config: type: string fieldOption: [...
Helpful walkthrough: https://dev.to/mikeralphson/comparing-openapiswagger-20-and-300-rc1
Compiling a proto definition without a `go_package` option now generates the following warning: 2020/11/12 15:09:19 WARNING: Missing 'go_package' option in "pkg/protobuf/api/api.proto", please specify it with the full Go package path...
`protoc` v3.7.1 throws errors when parsing `fixtures/accountv1-0.proto`: ```console $ protoc --version libprotoc 3.7.1 $ protoc -o/dev/null fixtures/accountv1-0.proto fixtures/accountv1-0.proto:342:14: "Permissions" is already defined in "accountinformationapis.AccountRequest.DataMessage". fixtures/accountv1-0.proto:646:14: "Permissions" is already defined in...
I think it makes sense to validate protobuf files used as fixtures in CI. This currently fails, demonstrating that some fixtures are currently not valid protobuf files. Related: https://github.com/nytimes/openapi2proto/issues/130
Generating protos for https://github.com/kubernetes/kubernetes/blob/965137a992ed755474f17fa6377ee3555745addd/api/openapi-spec/swagger.json failed: ```console $ openapi2proto -spec kubernetes-swagger.json error: failed to transpile: failed to load OpenAPI spec: failed to resolve external references: failed to resolve object: failed to...
We still have the kubernetes.json fixture commented out from tests due to a (valid) JSON Schema $ref to point to a string type: ``` "$ref": { "type": "string" }, ```...