Created
February 7, 2018 16:55
-
-
Save Relequestual/8a45a6d71afee36f5285fe4308977137 to your computer and use it in GitHub Desktop.
Modified question schema
This file contains hidden or 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
{ | |
"$schema": "http://json-schema.org/draft-06/schema#", | |
"type": "object", | |
"allOf": [ | |
{ | |
"$schema": "http://json-schema.org/draft-06/schema#", | |
"$id": "http:/example.org/example.schema.json", | |
"type": "object", | |
"properties": { | |
"type": { | |
"type": "string" | |
}, | |
"body": { | |
"type": "object" | |
} | |
}, | |
"required": [ | |
"type", | |
"body" | |
] | |
}, | |
{ | |
"properties": { | |
"body": { | |
"$schema": "http://json-schema.org/draft-06/schema#", | |
"$id": "http://example.org/foo.schema.json", | |
"type": "object", | |
"properties": { | |
"foo": { | |
"type": "number", | |
"minimum": 1 | |
}, | |
"bar": { | |
"$ref": "#/properties/foo" | |
} | |
}, | |
"required": [ | |
"foo", | |
"bar" | |
] | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment