ajv-validator / ajv-cli

Command-line interface for Ajv JSON Validator
https://ajv.js.org
MIT License
262 stars 66 forks source link

Question: Can I pass a JSON schema written in YAML? #217

Open corneliusroemer opened 2 years ago

corneliusroemer commented 2 years ago

I couldn't find an answer to this in the readme: I've written the schema I'd like to use to validate YAML files in YAML.

Is it possible to use that schema written in YAML without having to convert it into JSON first? That'd be quite neat.

corneliusroemer commented 2 years ago

It looks like the answer is yes! Seems to work, fantastic! Would be great to document this :)