Last active
February 5, 2021 11:51
-
-
Save karussell/62cb8b9794be709f777366f93e635582 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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