Sebastian Frank
590f8233ce
All checks were successful
continuous-integration/drone/push Build is passing
44 lines
1.4 KiB
JSON
44 lines
1.4 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "JSON Schema WMBasic permissions configuration",
|
|
"description": "WMBasic permissions linter",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"public": {
|
|
"description": "permissions for unauthorized public access",
|
|
"$ref": "#/definitions/permissionSet"
|
|
},
|
|
"user": {
|
|
"description": "permissions for authorized users (nativ wmbasic auth)",
|
|
"$ref": "#/definitions/permissionSet"
|
|
}
|
|
},
|
|
"patternProperties": {
|
|
"^token:": {
|
|
"description": "permissions for header or query token",
|
|
"$ref": "#/definitions/permissionSet"
|
|
}
|
|
},
|
|
"required": ["public", "user"],
|
|
"definitions": {
|
|
"permissionSet": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"methods": {
|
|
"type": "object",
|
|
"description": "permissions for http methods",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"get": { "type": "boolean" },
|
|
"post": { "type": "boolean" },
|
|
"put": { "type": "boolean" },
|
|
"delete": { "type": "boolean" }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|