Closed nathcarmona closed 1 year ago
I have noticed that the validator does not check for the type of "version" in a swagger file when it has major, minor and patch versions.
info: title: Swagger Petstore - OpenAPI 3.0 version: 1.0.0
When the version is of type number and version: 1.0 or version: 1, an error is thrown "API version number must a string (e.g. "1.0.0") not a number", but the error does not appear when version: 1.0.0.
version: 1.0
version: 1
version: 1.0.0
Thats thanks to YAML considering that a string. 🙌🏻
I have noticed that the validator does not check for the type of "version" in a swagger file when it has major, minor and patch versions.
When the version is of type number and
version: 1.0
orversion: 1
, an error is thrown "API version number must a string (e.g. "1.0.0") not a number", but the error does not appear whenversion: 1.0.0
.