New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ajv to 6.11 to fully support date-time format spec #980
Comments
👋🏻 Could you please provide an example of what doesn’t work today and would be fixed with this upgrade? |
Specifically this issue ajv-validator/ajv#1061. |
@jababda Thanks for your answer. I now realize my initial request was badly expressed. Let me give it another try. ;-) Could you please provide us with the smallest possible OpenAPi document, that fails the validation with current Spectral version but would pass with an updated ajv? We do our best to cover any change (and especially bugs) with automated tests to guard against future regressions, and in order to add a test for this change, we'd need this concrete example of what is being fixed. Or... if you feel adventurous (:wink:) and open to it, you could send a pull request with the fix and the test covering it (with regards to the test, the simplest possible change for you would be to add an an end-to-end test similar to https://github.com/stoplightio/spectral/blob/develop/test-harness/scenarios/results-default.oas3.scenario |
Produces
The latest ajv update should resolve this the error. |
I was totally wrong, my example does not follow the https://tools.ietf.org/html/rfc3339#section-5.6 spec as the hrs time offset is not 2 digits. Closing this issue. |
Chore summary
Update ajv to the latest version to get full date time support for schema validation.
Right now the 6.10 version isn't compliant with the full date-time iso format spec that oas supports.
Tasks
The text was updated successfully, but these errors were encountered: