Skip to content

Instantly share code, notes, and snippets.

@djodjoni
Forked from geraintluff/menu-data.json
Created March 21, 2014 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djodjoni/9686035 to your computer and use it in GitHub Desktop.
Save djodjoni/9686035 to your computer and use it in GitHub Desktop.
{
"main": "food",
"sub": "bread"
}
{
"type": "object",
"required": ["main", "sub"],
"oneOf": [
{
"title": "Food menu",
"properties": {
"main": {"enum": ["food"]},
"sub": {"enum": ["bread","steak"]}
}
},
{
"title": "Drink menu",
"properties": {
"main": {"enum": ["drinks"]},
"sub": {"enum": ["water","juice"]}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment