Skip to content

Instantly share code, notes, and snippets.

@karussell
Last active Feb 5, 2021
Embed
What would you like to do?
"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