Closed
Description
A rule to require a certain level of prop specificity could be useful. Two levels of specificity that come to mind:
- At least type(s) (e.g.
myProp: String
ormyProp: [String, Number]
) - object value forprops
- At least definition object (e.g.
myProp: { type: String }
), making it easier to add other restrictions (e.g.required
,validate
) - requires object value forprops
and also for any properties on that object