adiwg / mdJson-schemas

JSON schemas, examples, and templates for ADIwg metadata standards
http://www.adiwg.org/projects/
GNU Lesser General Public License v3.0
18 stars 15 forks source link

scopeDescription must have ... #194

Closed stansmith907 closed 6 years ago

stansmith907 commented 6 years ago

scopeDescription must have at least one dataset, attribute, feature, or other.

stansmith907 commented 6 years ago

I don't think this would be breaking since dataset, attribute, feature, and other are the only elements in scopeDescription. Just adding a check to see that it is not empty.

jlblcc commented 6 years ago

I'm going to use minProperties=1 instead of requiring one of those properties specifically. That way if someone extends the schema to add another type of scope Description, it won't fail validation. Sound OK?

stansmith907 commented 6 years ago

Works for me. That way we can allow user entries.