Skip to content

Commit

Permalink
docs: allow $schema key in config.schema.json (#1083)
Browse files Browse the repository at this point in the history
Co-authored-by: Patrik <[email protected]>
  • Loading branch information
dbtek and zepatrik authored Oct 27, 2022
1 parent 0118850 commit 333af27
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 8 deletions.
44 changes: 39 additions & 5 deletions .schema/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
"title": "ORY Keto Configuration",
"type": "object",
"definitions": {
"$schema": {
"type": "string",
"format": "uri-reference",
"description": "Add this to allow defining the schema, useful for IDE integration"
},
"namespace": {
"type": "object",
"properties": {
"$schema": {
"type": "string",
"format": "uri-reference",
"description": "Add this to allow defining the schema, useful for IDE integration"
"$ref": "#/definitions/$schema"
},
"name": {
"type": "string",
Expand Down Expand Up @@ -170,6 +173,9 @@
"required": ["dsn"],
"additionalProperties": false,
"properties": {
"$schema": {
"$ref": "#/definitions/$schema"
},
"dsn": {
"title": "Data Source Name",
"type": "string",
Expand Down Expand Up @@ -267,6 +273,34 @@
"$ref": "#/definitions/tlsx"
}
}
},
"opl": {
"type": "object",
"title": "Ory Permission Language Syntax API (http and gRPC)",
"additionalProperties": false,
"properties": {
"port": {
"type": "integer",
"default": 4469,
"title": "Port",
"description": "The port to listen on.",
"minimum": 0,
"maximum": 65535
},
"host": {
"type": "string",
"default": "",
"examples": ["localhost", "127.0.0.1"],
"title": "Host",
"description": "The network interface to listen on."
},
"cors": {
"$ref": "#/definitions/cors"
},
"tls": {
"$ref": "#/definitions/tlsx"
}
}
}
}
},
Expand All @@ -277,10 +311,10 @@
"enum": ["cpu", "mem", ""]
},
"log": {
"$ref": "https://raw.githubusercontent.com/ory/x/v0.0.473/logrusx/config.schema.json"
"$ref": "https://raw.githubusercontent.com/ory/x/v0.0.496/logrusx/config.schema.json"
},
"tracing": {
"$ref": "https://raw.githubusercontent.com/ory/x/v0.0.473/tracing/config.schema.json"
"$ref": "https://raw.githubusercontent.com/ory/x/v0.0.496/tracing/config.schema.json"
},
"namespaces": {
"description": "Namespace configuration or it's location.",
Expand Down
12 changes: 9 additions & 3 deletions embedx/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
"title": "ORY Keto Configuration",
"type": "object",
"definitions": {
"$schema": {
"type": "string",
"format": "uri-reference",
"description": "Add this to allow defining the schema, useful for IDE integration"
},
"namespace": {
"type": "object",
"properties": {
"$schema": {
"type": "string",
"format": "uri-reference",
"description": "Add this to allow defining the schema, useful for IDE integration"
"$ref": "#/definitions/$schema"
},
"name": {
"type": "string",
Expand Down Expand Up @@ -170,6 +173,9 @@
"required": ["dsn"],
"additionalProperties": false,
"properties": {
"$schema": {
"$ref": "#/definitions/$schema"
},
"dsn": {
"title": "Data Source Name",
"type": "string",
Expand Down

0 comments on commit 333af27

Please sign in to comment.