Skip to content

Commit

Permalink
fix(version schema): require version or fall back to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik authored and aeneasr committed Mar 22, 2022
1 parent 8e2f3b2 commit 52c9824
Showing 1 changed file with 129 additions and 28 deletions.
157 changes: 129 additions & 28 deletions .schema/version.schema.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,37 @@
{
"$id": "https://github.com/ory/kratos/.schema/versions.config.schema.json",
"$schema": "https://raw.githubusercontent.com/ory/cli/v0.0.21/.schema/version_meta.schema.json#",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "All Versions for Ory Kratos Configuration",
"type": "object",
"oneOf": [
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.9.0-alpha.2"
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.9.0-alpha.2/embedx/config.schema.json"
}
]
},
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.4.6-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.4.6-alpha.1/.schema/config.schema.json"
Expand All @@ -25,7 +45,10 @@
"version": {
"const": "v0.5.0-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.5.0-alpha.1/.schema/config.schema.json"
Expand All @@ -39,7 +62,10 @@
"version": {
"const": "v0.5.1-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.5.1-alpha.1/.schema/config.schema.json"
Expand All @@ -53,7 +79,10 @@
"version": {
"const": "v0.5.2-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.5.2-alpha.1/.schema/config.schema.json"
Expand All @@ -67,7 +96,10 @@
"version": {
"const": "v0.5.3-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.5.3-alpha.1/.schema/config.schema.json"
Expand All @@ -81,7 +113,10 @@
"version": {
"const": "v0.5.4-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.5.4-alpha.1/.schema/config.schema.json"
Expand All @@ -95,7 +130,10 @@
"version": {
"const": "v0.5.5-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.5.5-alpha.1/.schema/config.schema.json"
Expand All @@ -109,7 +147,10 @@
"version": {
"const": "v0.6.0-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.6.0-alpha.1/driver/config/.schema/config.schema.json"
Expand All @@ -123,7 +164,10 @@
"version": {
"const": "v0.6.0-alpha.2"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.6.0-alpha.2/driver/config/.schema/config.schema.json"
Expand All @@ -137,7 +181,10 @@
"version": {
"const": "v0.6.1-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.6.1-alpha.1/driver/config/.schema/config.schema.json"
Expand All @@ -151,7 +198,10 @@
"version": {
"const": "v0.6.2-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.6.2-alpha.1/driver/config/.schema/config.schema.json"
Expand All @@ -165,7 +215,10 @@
"version": {
"const": "v0.6.3-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.6.3-alpha.1/driver/config/.schema/config.schema.json"
Expand All @@ -179,7 +232,10 @@
"version": {
"const": "v0.7.0-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.7.0-alpha.1/driver/config/.schema/config.schema.json"
Expand All @@ -193,7 +249,10 @@
"version": {
"const": "v0.7.1-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.7.1-alpha.1/driver/config/.schema/config.schema.json"
Expand All @@ -207,7 +266,10 @@
"version": {
"const": "v0.7.3-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.7.3-alpha.1/driver/config/.schema/config.schema.json"
Expand All @@ -221,7 +283,10 @@
"version": {
"const": "v0.7.4-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.7.4-alpha.1/driver/config/.schema/config.schema.json"
Expand All @@ -235,7 +300,10 @@
"version": {
"const": "v0.7.5-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.7.5-alpha.1/driver/config/.schema/config.schema.json"
Expand All @@ -249,7 +317,10 @@
"version": {
"const": "v0.7.6-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.7.6-alpha.1/driver/config/.schema/config.schema.json"
Expand All @@ -263,7 +334,10 @@
"version": {
"const": "v0.8.0-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.8.0-alpha.1/embedx/config.schema.json"
Expand All @@ -277,7 +351,10 @@
"version": {
"const": "v0.8.0-alpha.2"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.8.0-alpha.2/embedx/config.schema.json"
Expand All @@ -291,7 +368,10 @@
"version": {
"const": "v0.8.0-alpha.3"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.8.0-alpha.3/embedx/config.schema.json"
Expand All @@ -305,7 +385,10 @@
"version": {
"const": "v0.8.2-alpha.1"
}
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.8.2-alpha.1/embedx/config.schema.json"
Expand All @@ -315,14 +398,32 @@
{
"allOf": [
{
"properties": {
"version": {
"const": "v0.9.0-alpha.2"
"oneOf": [
{
"properties": {
"version": {
"type": "string",
"maxLength": 0
}
},
"required": [
"version"
]
},
{
"not": {
"properties": {
"version": {}
},
"required": [
"version"
]
}
}
}
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/kratos/v0.9.0-alpha.2/embedx/config.schema.json"
"$ref": "#/oneOf/0/allOf/1"
}
]
}
Expand Down

0 comments on commit 52c9824

Please sign in to comment.