Skip to content

Instantly share code, notes, and snippets.

@theresajayne
Created August 31, 2019 07:59
Show Gist options
  • Save theresajayne/09efae5e527842e36dbc01b57477a0d4 to your computer and use it in GitHub Desktop.
Save theresajayne/09efae5e527842e36dbc01b57477a0d4 to your computer and use it in GitHub Desktop.
{
"$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