Swagger/openapi schema mega fixes and Cypress validation/enforcement

This commit is contained in:
Jamie Curnow
2025-10-29 20:15:00 +10:00
parent 89abb9d559
commit 906ce8ced2
80 changed files with 2007 additions and 543 deletions

View File

@@ -1,10 +1,10 @@
{
"operationId": "getSettings",
"summary": "Get all settings",
"tags": ["Settings"],
"tags": ["settings"],
"security": [
{
"BearerAuth": ["settings"]
"bearerAuth": ["admin"]
}
],
"responses": {

View File

@@ -1,10 +1,10 @@
{
"operationId": "getSetting",
"summary": "Get a setting",
"tags": ["Settings"],
"tags": ["settings"],
"security": [
{
"BearerAuth": ["settings"]
"bearerAuth": ["admin"]
}
],
"parameters": [

View File

@@ -1,10 +1,10 @@
{
"operationId": "updateSetting",
"summary": "Update a setting",
"tags": ["Settings"],
"tags": ["settings"],
"security": [
{
"BearerAuth": ["settings"]
"bearerAuth": ["admin"]
}
],
"parameters": [
@@ -34,7 +34,8 @@
"value": {
"type": "string",
"minLength": 1,
"enum": ["congratulations", "404", "444", "redirect", "html"]
"enum": ["congratulations", "404", "444", "redirect", "html"],
"example": "html"
},
"meta": {
"type": "object",
@@ -46,9 +47,16 @@
"html": {
"type": "string"
}
},
"example": {
"html": "<p>hello world</p>"
}
}
}
},
"example": {
"value": "congratulations",
"meta": {}
}
}
}