Created
August 31, 2019 07:59
-
-
Save theresajayne/09efae5e527842e36dbc01b57477a0d4 to your computer and use it in GitHub Desktop.
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-04/schema#", | |
"definitions": { | |
"range": { | |
"type": "object", | |
"properties": { | |
"from": { "type": "string" }, | |
"to": { "type": "string" } | |
}, | |
"required": [ "from" ] | |
}, | |
"ranges": { | |
"type": "array", | |
"items": { "$ref": "#/definitions/range" }, | |
"default": [] | |
}, | |
"HTTP_API": { | |
"type": "object", | |
"properties": { | |
"allow": { "type": "boolean" }, | |
"ranges": { "$ref": "#/definitions/ranges" } | |
} | |
}, | |
"TCP": { | |
"type": "object", | |
"properties": { | |
"allow": { "type": "boolean" }, | |
"ranges": { "$ref": "#/definitions/ranges" } | |
} | |
}, | |
"CONFIG": { | |
"type": "object", | |
"properties": { | |
"allow": { "type": "boolean" }, | |
"ranges": { "$ref": "#/definitions/ranges" } | |
} | |
}, | |
"zoneRules": { | |
"type": "object", | |
"anyOf": [ | |
{ "$ref": "#/definitions/HTTP_API" }, | |
{ "$ref": "#/definitions/TCP" }, | |
{ "$ref": "#/definitions/CONFIG" } | |
] | |
} | |
}, | |
"type": "object", | |
"properties": { | |
"zoneRules": {} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment