Add oidc-config to OpenAPI schema

This commit is contained in:
Samuel Oechsler 2024-10-30 20:33:26 +01:00
parent 7196dfa1ad
commit 0b126ca546
No known key found for this signature in database

View File

@ -14,7 +14,7 @@
"schema": { "schema": {
"type": "string", "type": "string",
"minLength": 1, "minLength": 1,
"enum": ["default-site"] "enum": ["default-site", "oidc-config"]
}, },
"required": true, "required": true,
"description": "Setting ID", "description": "Setting ID",
@ -27,6 +27,8 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"oneOf": [
{
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"minProperties": 1, "minProperties": 1,
@ -34,7 +36,13 @@
"value": { "value": {
"type": "string", "type": "string",
"minLength": 1, "minLength": 1,
"enum": ["congratulations", "404", "444", "redirect", "html"] "enum": [
"congratulations",
"404",
"444",
"redirect",
"html"
]
}, },
"meta": { "meta": {
"type": "object", "type": "object",
@ -49,6 +57,39 @@
} }
} }
} }
},
{
"type": "object",
"additionalProperties": false,
"minProperties": 1,
"properties": {
"meta": {
"type": "object",
"additionalProperties": false,
"properties": {
"clientID": {
"type": "string"
},
"clientSecret": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"issuerURL": {
"type": "string"
},
"name": {
"type": "string"
},
"redirectURL": {
"type": "string"
}
}
}
}
}
]
} }
} }
} }