Skip to content

Conversation

@erunion
Copy link
Contributor

@erunion erunion commented Oct 11, 2021

While investigating some @apidevtools/swagger-parser quirks I discovered that loading a YAML file that contains a date-like string causes that date to be converted into a Date object, causing the API definition to fail validation.

This updates the usage of js-yaml to ensure that all YAML content conforms to JSON-compatible types by way of its schema option (docs here).

@philsturgeon philsturgeon enabled auto-merge March 9, 2022 17:17
@philsturgeon philsturgeon disabled auto-merge May 11, 2022 21:30
@philsturgeon philsturgeon merged commit cd9bd91 into APIDevTools:main May 11, 2022
@erunion erunion deleted the fix/dates-as-strings branch November 26, 2022 16:53
@github-actions
Copy link

🎉 This PR is included in version 9.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants