rasmus-beck / FerroJson

Json Schema Validator based on Irony.Net
MIT License
2 stars 0 forks source link

Allow null should be possible #5

Open rasmus-beck opened 9 years ago

rasmus-beck commented 9 years ago

Even though it isn't standard, you should be able to allow a property such as a nested object to be null, which means that every thing below is only evaluated if it exists. That means you can set required: true on nested properties but only have that evaluated if the object is present.