gnostic icon indicating copy to clipboard operation
gnostic copied to clipboard

cmd/protoc-gen-openapi/generator: fix Openapi version to 3.1.0

Open zchee opened this issue 3 years ago • 2 comments

cmd/protoc-gen-openapi/generator: fix Openapi version to 3.1.0.

github.com/google/gnostic/openapiv3 already supports 3.1.0.

zchee avatar Feb 13 '22 06:02 zchee

cc: @timburks

zchee avatar Mar 12 '22 18:03 zchee

Thank you @zchee, but the supported version is 3.0.x, not 3.1.x. 3.1.x supports a full JSON Schema spec, while 3.0.x doesn't. Some of the generated parts of the OpenAPI .yaml file was designed to support 3.0.x.

Changing to 3.1.0 would cause 3.0.x consumers to fail, while 3.1.x consumers can probably consume 3.0.x.

morphar avatar May 07 '22 06:05 morphar