Open nickevansuk opened 6 years ago
These conformance criteria are already spelled out in the specification.
There's a few checks/warnings we might out around this, including a prompt of what consumers may assume if no age range is provided. Leaving this open for now to spell that out.
Rule name
For ageRange, at least one of minValue or maxValue must be supplied
Rule type
Validation error
Rule hint
The ageRange property should be omitted completely if neither minValue or maxValue is available. Note that omission will have the effect of specifying
minValue
as 18 as per the specification. If the desired default is "suitable for all ages", then the minValue should default to 0 or the minimum possible age of the activity (e.g. 13) and no maxValue.Associated proposal or model reference
Examples