Skip to content

Commit

Permalink
docs: fix version schema
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Apr 13, 2022
1 parent 94db619 commit c5497f3
Showing 1 changed file with 159 additions and 102 deletions.
261 changes: 159 additions & 102 deletions .schema/version.schema.json
Original file line number Diff line number Diff line change
@@ -1,120 +1,177 @@
{
"$id": "https://github.com/ory/oathkeeper/.schema/versions.config.schema.json",
"$schema": "https://raw.githubusercontent.com/ory/cli/v0.0.21/.schema/version_meta.schema.json#",
"title": "All Versions of the ORY Oathkeeper Configuration",
"type": "object",
"oneOf": [
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.4-beta.1"
}
}
},
{
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.4-beta.1/.schema/config.schema.json"
}
]
"$id": "https://github.com/ory/oathkeeper/.schema/versions.config.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "All Versions of the ORY Oathkeeper Configuration",
"type": "object",
"oneOf": [
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.4-beta.1"
}
},
"required": [
"version"
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.5-beta.1"
}
}
},
{
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.5-beta.1/.schema/config.schema.json"
}
]
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.4-beta.1/.schema/config.schema.json"
}
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.5-beta.1"
}
},
"required": [
"version"
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.9-beta.1"
}
}
},
{
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.9-beta.1/.schema/config.schema.json"
}
]
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.5-beta.1/.schema/config.schema.json"
}
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.9-beta.1"
}
},
"required": [
"version"
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.14-beta.1"
}
}
},
{
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.14-beta.1/.schema/config.schema.json"
}
]
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.9-beta.1/.schema/config.schema.json"
}
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.14-beta.1"
}
},
"required": [
"version"
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.15-beta.1"
}
}
},
{
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.15-beta.1/.schema/config.schema.json"
}
]
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.14-beta.1/.schema/config.schema.json"
}
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.15-beta.1"
}
},
"required": [
"version"
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.17-beta.1"
}
}
},
{
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.17-beta.1/.schema/config.schema.json"
}
]
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.15-beta.1/.schema/config.schema.json"
}
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.17-beta.1"
}
},
"required": [
"version"
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.19-beta.1"
}
}
},
{
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.19-beta.1/.schema/config.schema.json"
}
]
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.17-beta.1/.schema/config.schema.json"
}
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.19-beta.1"
}
},
"required": [
"version"
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.20-beta.1"
}
}
},
{
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.20-beta.1/.schema/config.schema.json"
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.19-beta.1/.schema/config.schema.json"
}
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.38.20-beta.1"
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/oathkeeper/v0.38.20-beta.1/.schema/config.schema.json"
}
]
},
{
"description": "This is the fallback to the latest version (the first one in this schema) in case no version is specified.",
"allOf": [
{
"oneOf": [
{
"properties": {
"version": {
"type": "string",
"maxLength": 0
}
]
},
"required": [
"version"
]
},
{
"not": {
"properties": {
"version": {}
},
"required": [
"version"
]
}
}
]
},
{
"$ref": "#/oneOf/0/allOf/1"
}
]
]
}
]
}

0 comments on commit c5497f3

Please sign in to comment.