This PR fixes an issue where parsing errors of the input OpenApi yaml causes the OpenApiSpecVersion to default to OpenApi2_0 and outputs the error as "OpenApi 2.x is not supported." instead of the actual error.
The suggested fix is to check for parsing errors first.
This PR fixes an issue where parsing errors of the input OpenApi yaml causes the
OpenApiSpecVersion
to default toOpenApi2_0
and outputs the error as "OpenApi 2.x is not supported." instead of the actual error.The suggested fix is to check for parsing errors first.