snapshot of https://github.com/ory/keto.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
CI / Run lints and checks (push) Failing after 47s
CI / Run tests (push) Failing after 1s
CI / Run race tests (push) Failing after 5s
CI / Build CLI docs (push) Has been skipped
CI / Run buf actions (push) Failing after 5s
CodeQL / Analyze (go) (push) Failing after 3s
CodeQL / Analyze (javascript) (push) Failing after 2s
Docker Image Scanners / scanners (push) Failing after 3s
Format / format (push) Failing after 3s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Draft newsletter (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
Some checks failed
CI / Run lints and checks (push) Failing after 47s
CI / Run tests (push) Failing after 1s
CI / Run race tests (push) Failing after 5s
CI / Build CLI docs (push) Has been skipped
CI / Run buf actions (push) Failing after 5s
CodeQL / Analyze (go) (push) Failing after 3s
CodeQL / Analyze (javascript) (push) Failing after 2s
Docker Image Scanners / scanners (push) Failing after 3s
Format / format (push) Failing after 3s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Draft newsletter (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
This commit is contained in:
67
.schema/relation_tuple.schema.json
Normal file
67
.schema/relation_tuple.schema.json
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"allOf": [
|
||||
{
|
||||
"required": ["namespace", "relation", "object"],
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string",
|
||||
"format": "uri-reference",
|
||||
"description": "Add this to allow defining the schema, useful for IDE integration"
|
||||
},
|
||||
"namespace": {
|
||||
"type": "string",
|
||||
"description": "The namespace of the object and relation in this tuple."
|
||||
},
|
||||
"object": {
|
||||
"type": "string",
|
||||
"description": "The object affected by this relation."
|
||||
},
|
||||
"relation": {
|
||||
"type": "string",
|
||||
"description": "The relation of the object and subject."
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"required": ["subject_id"],
|
||||
"properties": {
|
||||
"subject_id": {
|
||||
"type": "string",
|
||||
"description": "The subject ID affected by this relation."
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"required": ["subject_set"],
|
||||
"properties": {
|
||||
"subject_set": {
|
||||
"type": "object",
|
||||
"description": "The subject set affected by this relation.",
|
||||
"properties": {
|
||||
"namespace": {
|
||||
"type": "string",
|
||||
"description": "The namespace of the object and relation in this subject set."
|
||||
},
|
||||
"object": {
|
||||
"type": "string",
|
||||
"description": "The object referenced in this subject set."
|
||||
},
|
||||
"relation": {
|
||||
"type": "string",
|
||||
"description": "The relation of this subject set."
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": ["namespace", "relation", "object"]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user