-
-
Notifications
You must be signed in to change notification settings - Fork 699
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: StringormyProp: [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 forpropsand also for any properties on that object