flywheel-io / gears

Flywheel Gear Examples and Documentation
MIT License
6 stars 3 forks source link

Set uriOrEmpty from oneOf to anyOf for compatibility with validators that do not implement format uri #16

Closed kofalt closed 7 years ago

kofalt commented 7 years ago

From the spec:

JSON Schema implementations are not required to implement this part of the specification, and many of them do not.

If a validator does not implement "format": "uri", validation will fail because oneOf will be matched by both clauses. This changes it for anyOf, which will have no effect on complete parsers and be compatible with incomplete ones.


Is this a semantic or operational change? If so:

kofalt commented 7 years ago

Very trivial change so merging to move this forward.