Skip to content

Instantly share code, notes, and snippets.

@karussell
Last active February 5, 2021 11:51
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 karussell/62cb8b9794be709f777366f93e635582 to your computer and use it in GitHub Desktop.
Save karussell/62cb8b9794be709f777366f93e635582 to your computer and use it in GitHub Desktop.
"schemas": {
"RouteRequest": {
"type": "object",
"properties": {
"custom_model": {
"description": "custom model bla",
"type": "object",
"properties": {
"speed": {
"type": "array",
"items": {
"type": "object",
"oneOf": [
{
"type": "object",
"properties": {
"if": {
"description": "condition",
"type": "string"
},
"multiply by": {
"description": "op",
"type": "number"
},
"limit to": {
"description": "op",
"type": "number"
}
}
}, {
"type": "object",
"properties": {
"else if": {
"description": "condition",
"type": "string"
},
"multiply by": {
"description": "op",
"type": "number"
},
"limit to": {
"description": "op",
"type": "number"
}
}
}, {
"type": "object",
"properties": {
"else": {
"type": "string",
"nullable": true,
"enum" : ["", null]
},
"multiply by": {
"description": "op",
"type": "number"
},
"limit to": {
"description": "op",
"type": "number"
}
}
}]
}
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment