schemas.schema-form.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gravitee-policy-resource-filtering Show documentation
Show all versions of gravitee-policy-resource-filtering Show documentation
Filter access to specific resources determined by a path and a method
The newest version!
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"properties": {
"whitelist": {
"title": "Whitelist",
"type": "array",
"items": {
"title": "Rule",
"type": "object",
"properties": {
"pattern": {
"type": "string",
"title": "Path pattern",
"description": "Ant-style path patterns"
},
"methods": {
"title": "Methods",
"description": "HTTP Methods",
"type": "array",
"items": {
"type": "string",
"enum": ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"]
},
"uniqueItems": true
}
},
"required": ["pattern"]
}
},
"blacklist": {
"title": "Blacklist",
"type": "array",
"items": {
"title": "Rule",
"type": "object",
"properties": {
"pattern": {
"type": "string",
"title": "Path pattern",
"description": "Ant-style path patterns"
},
"methods": {
"title": "Methods",
"description": "HTTP Methods",
"type": "array",
"items": {
"type": "string",
"enum": ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"]
},
"uniqueItems": true
}
},
"required": ["pattern"]
}
}
}
}