Principals.schema.json

{ "$id": "https://api.cerbos.dev/v0.53.0/cerbos/policy/v1/TestFixture/Principals.schema.json", "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "cerbos.engine.v1.Principal": { "type": "object", "required": [
"id",
"roles"
], "additionalProperties": false, "properties": { "attr": { "type": "object", "additionalProperties": { "$ref": "#/definitions/google.protobuf.Value" }, "propertyNames": { "type": "string", "minLength": 1 } }, "id": { "type": "string", "minLength": 1 }, "policyVersion": { "type": "string", "pattern": "^[0-9A-Z_a-z]*$" }, "roles": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1, "uniqueItems": true }, "scope": { "type": "string", "pattern": "^(^$|\.|[0-9A-Za-z][\-0-9A-Z_a-z]*(\.[0-9A-Z_a-z][\-0-9A-Z_a-z]*)*)$" } } }, "cerbos.policy.v1.TestFixtureGroup.Principals": { "type": "object", "required": [
"principals"
], "additionalProperties": false, "properties": { "principals": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1, "uniqueItems": true } } }, "google.protobuf.Value": { "title": "Value", "description": "A dynamically-typed value." } }, "type": "object", "additionalProperties": false, "properties": { "$schema": { "type": "string" }, "principalGroups": { "type": "object", "additionalProperties": { "$ref": "#/definitions/cerbos.policy.v1.TestFixtureGroup.Principals" } }, "principals": { "type": "object", "additionalProperties": { "$ref": "#/definitions/cerbos.engine.v1.Principal" } } } }