- changed title to OAS-3.1.0 not supported
- marked as blocker
OAS-3.1.0 not supported
I am working on OAS-3.1.0 but i am getting below error while trying to generate openapi difference.
OpenApiDiffErrorImpl [VError]: Validation errors in "source-3.1.yaml": Unsupported OpenAPI version: 3.1.0. Swagger Parser only supports versions 3.0.0, 3.0.1, 3.0.2, 3.0.3
at /usr/local/lib/node_modules/openapi-diff/dist/openapi-diff/spec-parser/common/validate-and-dereference-spec.js:23:15
at Generator.throw (<anonymous>)
at rejected (/usr/local/lib/node_modules/openapi-diff/dist/openapi-diff/spec-parser/common/validate-and-dereference-spec.js:6:65) {
jse_shortmsg: 'Validation errors in "source-3.1.yaml"',
jse_cause: {
stack: 'SyntaxError: Unsupported OpenAPI version: 3.1.0. Swagger Parser only supports versions 3.0.0, 3.0.1, 3.0.2, 3.0.3\n' +
' at SwaggerParser.parse (/usr/local/lib/node_modules/openapi-diff/node_modules/@apidevtools/swagger-parser/lib/index.js:95:19)\n' +
' at async SwaggerParser.resolve (/usr/local/lib/node_modules/openapi-diff/node_modules/@apidevtools/json-schema-ref-parser/lib/index.js:184:5)\n' +
' at async SwaggerParser.dereference (/usr/local/lib/node_modules/openapi-diff/node_modules/@apidevtools/json-schema-ref-parser/lib/index.js:268:5)\n' +
' at async SwaggerParser.validate (/usr/local/lib/node_modules/openapi-diff/node_modules/@apidevtools/swagger-parser/lib/index.js:147:5)',
message: 'Unsupported OpenAPI version: 3.1.0. Swagger Parser only supports versions 3.0.0, 3.0.1, 3.0.2, 3.0.3',
toJSON: [Function: toJSON],
name: 'SyntaxError',
toString: [Function: toString]
},
jse_info: {},
code: 'OPENAPI_DIFF_PARSE_ERROR',
cause: [Function: ve_cause]
}
Any plans to add support for OAS-3.1.0
Thanks!
Comments (1)
-
reporter - Log in to comment