Hello all,
I'm excited by the potential of JSON Schema but I can't see how I can
define (or reference) an external list of options for an enum property
type.
For example, if I have a schema that I want to generate a form for,
how might I go about adding an enum property (which I'll show as a
dropdown menu) with an array of choices that are defined as
{ "value":"blah blah", "label":"woof woof" } objects externally to the
schema itself ?
"colour": {
"type": "string",
"title": "Favourite Colour",
"description": "Your favourite colour",
"enum": "$json:
http://www.mysite.com/colours.json"
}
The snippet above shows what I'd like to do for the "enum" options -
point at a JSON file containing the array of options. This is
currently my wishful thinking but is there anything in the spec that
allows this functionality ?
thanks
Stephen