cardinalby / schema-validator-action

JSON Schema validator Action
MIT License
11 stars 2 forks source link

Validate against `$schema` from file itself #2

Closed sim642 closed 2 years ago

sim642 commented 2 years ago

Instead of requiring the schema to be specified in the action, if the file to be validated itself provides a $schema key, then it should be automatically validated against that.

cardinalby commented 2 years ago

Hi! Thanks for the feedback.

Your suggestion looks pretty reasonable. Unfortunately, I don't have the capacity for this now but will definitely look at it later. Meanwhile, you are welcome to create a pull request if you decide to implement it by yourself.

cardinalby commented 2 years ago

@sim642 Proposed feature was implemented in version 1.1.0. It's also available under @v1 and @master.