Forum Discussion
hugomario yes, this is the file:
https://github.com/opentripmodel/opentripmodel/blob/master/api/swagger.yaml
It turned out the file has errors which are not detected by a lot of validators.
I found an OpenAPI validator from IBM which does see them and gives line numbers to fix them:
https://github.com/IBM/openapi-validator
exuraz wrote:
It turned out the file has errors which are not detected by a lot of validators.
I found an OpenAPI validator from IBM which does see them and gives line numbers to fix them:
https://github.com/IBM/openapi-validator
From a quick look the file seems to be a valid OpenAPI 3.0 definition. Most (if not all) errors and warnings reported by IBM's openapi-validator are NOT syntax errors but custom style validations based on "custom IBM-defined best practices" such as:
Property names must be lower snake case.
Arrays MUST NOT be returned as the top-level structure in a response body.
Operations with non-form request bodies should set a name with the x-codegen-request-body-name annotation.
These things aren't actually errors.
Related Content
- 10 months ago
- 2 years ago
- 2 years ago
Recent Discussions
- 7 days ago
- 7 days ago
- 24 days ago