hyperjump-io / json-schema

JSON Schema Validation, Annotation, and Bundling. Supports Draft 04, 06, 07, 2019-09, 2020-12, OpenAPI 3.0, and OpenAPI 3.1
https://json-schema.hyperjump.io/
MIT License
216 stars 21 forks source link

YAML support #6

Closed tomsfernandez closed 1 year ago

tomsfernandez commented 4 years ago

Hi! Any chance of supporting YAML validations of a json schema?

jdesrosiers commented 4 years ago

Yes, it's on the roadmap. Since you asked, I'll see about moving up in priority.

jawaff commented 2 years ago

Are there still plans for YAML support or has this been forgotten about?

jdesrosiers commented 2 years ago

It's not forgotten, it just hasn't been a high enough priority. My main concern is that the YAML parser is enormous compared to this library and I don't want to require that as a dependency for people who aren't concerned with YAML. I need to research how to make a dependency optional.

jdesrosiers commented 2 years ago

I just added support for custom media type plugins that you can use to configure support for YAML. Instructions are in the README, https://github.com/hyperjump-io/json-schema-validator#media-types.

jawaff commented 2 years ago

That'll work. Thanks for the update.