Skip to content

Instantly share code, notes, and snippets.

@diegodlh
Last active May 18, 2022 16:13
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 diegodlh/62a05060e68e83628123fd13f858738f to your computer and use it in GitHub Desktop.
Save diegodlh/62a05060e68e83628123fd13f858738f to your computer and use it in GitHub Desktop.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"selections": {
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/objectDef"
}
]
}
},
"other": {
"type": "array",
"items": {
"$ref": "#/definitions/objectDef"
}
}
},
"required": ["selections"],
"definitions": {
"objectDef": {
"type": "object",
"properties": {
"value": { "type": "string" }
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment