json-schema icon indicating copy to clipboard operation
json-schema copied to clipboard

YAML support

Open tomsfernandez opened this issue 4 years ago • 5 comments

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

tomsfernandez avatar Jun 30 '20 15:06 tomsfernandez

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

jdesrosiers avatar Jun 30 '20 17:06 jdesrosiers

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

jawaff avatar Jul 13 '22 16:07 jawaff

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 avatar Jul 13 '22 17:07 jdesrosiers

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.

jdesrosiers avatar Jul 24 '22 01:07 jdesrosiers

That'll work. Thanks for the update.

jawaff avatar Aug 05 '22 22:08 jawaff