-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
This is implemented by AJV's strict mode.
Comments
I feel there are legitimate times when this is desired (e.g. inside an
if
/then
/else
oroneOf
). Usually a parent schema can declareproperties
but the subschemas would only control which properties are required. - @gregsdennis
I don't thing we should do this one. The only way this would make sense is if you could analyze the whole schema (including external references) to determine if the property isn't declared in any sub-schema that applies to a location. To the best of my knowledge, that's way outside the capabilities of Spectral. - @jdesrosiers