where oneOf would be an array of values, each of the same type/format of the field.
"oneOf": ["this", "that", "other"]
Here is an example in a schema that I'm experimenting with.
Implementors of the spec would ensure that:
JSON Schema has enum (example) and oneOf (example)
What I called oneOf above is probably more like an enum in JSON Schema. I prefer the oneOf terminology here as it fits with the more descriptive, human-oriented nature of the JTS spec, but, I'm easy.
I would move for immediate inclusion as seems a small and very sensible addition.
@paulfitz any thoughts?
@pwalsh are you happy to submit a PR?
Yes, will do pull request.
this is a very common case, good to have a way to express it.