Add example for remote deriving JsonSchema

This commit is contained in:
Graham Esau 2019-12-26 23:18:09 +00:00
parent b11536e527
commit 8d40625f10
5 changed files with 165 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Process",
"type": "object",
"required": [
"command_line",
"wall_time"
],
"properties": {
"command_line": {
"type": "string"
},
"wall_time": {
"$ref": "#/definitions/DurationDef"
}
},
"definitions": {
"DurationDef": {
"type": "object",
"required": [
"nanos",
"secs"
],
"properties": {
"nanos": {
"type": "integer",
"format": "int32"
},
"secs": {
"type": "integer",
"format": "int64"
}
}
}
}
}