May a property /require/ multiple other properties?

3 views
Skip to first unread message

Lloyd Hilaiel

unread,
Oct 7, 2009, 6:30:05 PM10/7/09
to JSON Schema
Looking at the 'requires' attribute and am wondering it is percieved
as useful to allow a property to require multiple other properties.
i.e.

"foo": {"requires": [ "bar", "baz" ] }

best,
lloyd

Cari Davidson

unread,
Nov 8, 2009, 7:06:13 AM11/8/09
to JSON Schema
I was considering the same question... it seems that in both the
schema definition as well as the jsonvalidator (python version at
least), there is a limitation of this schema that a field can only
require one other.

... I think that should be changed in the proposal...
Reply all
Reply to author
Forward
0 new messages