Open mdirkse opened 3 years ago
I am hitting the same thing. Conversion from OpenAPIv3 to Swaggerv2 is removing the securityDefinitions.
Same thing
here is my command
api-spec-converter --from=openapi_3 --to=swagger_2 --syntax=yaml endpoints/openapi3.yml > endpoints/openapi.yml
Any solutions ? Google cloud endpoints only support swagger_2 format and when i use api-spec-converter to convert from openapi3 to swagger2 googe cloud endpoints says my file is not a 3.0 openapi, but it is... I also noticed that it removed securityDefinitions, security, x-google-endpoints and host key
Hi,
I'm using the project to convert an OpenAPI 3 spec to Swagger 2 (for use in GCP's API Gateway). I'm noticing that the convertor will make the
securityDefinitions
top level element disappear if any paths reference a schema object definition. Let me give 2 examples:If I input the following:
I get the following (as expected):
However, if I include an endpoint with a reference to a schema in its response, like so:
I get the following:
Notice that the
securityDefinitions
element has disappeared and I've got an extrax-components: {}
tag that was added.Is this intended behavior or a bug?