kilianpaquier / craft

Easily generate identical projects layout to enforce consistency over repositories
MIT License
1 stars 1 forks source link

Improve schemas with conditions #66

Open kilianpaquier opened 3 months ago

kilianpaquier commented 3 months ago

It seems we can have if then conditions in JSON schemas. Could be useful for release mode !

https://json-schema.org/understanding-json-schema/reference/conditionals#ifthenelse

Testing and investigation can be done here: https://tour.json-schema.org/

kilianpaquier commented 3 weeks ago

https://tour.json-schema.org/content/05-Conditional-Validation/01-Ensuring-Conditional-Property-Presence

kilianpaquier commented 3 weeks ago

https://tour.json-schema.org/content/05-Conditional-Validation/02-Ensuring-Mutual-Dependency