Add missing json schema types

This commit is contained in:
Jamie Curnow 2023-05-31 16:34:20 +10:00
parent 63845377d9
commit adf0030b1c
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E
44 changed files with 60 additions and 44 deletions

View File

@ -7,34 +7,28 @@
"version": {
"type": "string",
"description": "Version",
"example": "3.0.0",
"minLength": 1
},
"commit": {
"type": "string",
"description": "Commit hash",
"example": "946b88f",
"minLength": 7
},
"healthy": {
"type": "boolean",
"description": "Healthy?",
"example": true
"description": "Healthy?"
},
"setup": {
"type": "boolean",
"description": "Is the application set up?",
"example": true
"description": "Is the application set up?"
},
"error_reporting": {
"type": "boolean",
"description": "Will the application send any error reporting?",
"example": true
"description": "Will the application send any error reporting?"
},
"acme.sh": {
"type": "string",
"description": "Acme.sh version",
"example": "v3.0.0",
"minLength": 1
}
}

View File

@ -7,13 +7,11 @@
"expires": {
"type": "number",
"description": "Token Expiry Unix Time",
"example": 1566540249,
"minimum": 1
},
"token": {
"type": "string",
"description": "JWT Token",
"example": "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.ey...xaHKYr3Kk6MvkUjcC4"
"description": "JWT Token"
}
}
}

View File

@ -21,6 +21,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -30,6 +30,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -37,6 +37,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -17,6 +17,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -21,6 +21,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -30,6 +30,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -37,6 +37,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -17,6 +17,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -7,9 +7,8 @@
"content": {
"application/json": {
"schema": {
"required": [
"result"
],
"type": "object",
"required": ["result"],
"properties": {
"result": {
"$ref": "#/components/schemas/ConfigObject"
@ -33,4 +32,4 @@
}
}
}
}
}

View File

@ -37,6 +37,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -17,6 +17,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -21,6 +21,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -30,6 +30,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -7,9 +7,8 @@
"content": {
"application/json": {
"schema": {
"required": [
"result"
],
"type": "object",
"required": ["result"],
"properties": {
"result": {
"$ref": "#/components/schemas/HealthObject"
@ -44,4 +43,4 @@
}
}
}
}
}

View File

@ -37,6 +37,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -21,6 +21,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -21,6 +21,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -30,6 +30,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -17,6 +17,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -37,6 +37,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -17,6 +17,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -21,6 +21,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -30,6 +30,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -37,6 +37,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -21,6 +21,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -30,6 +30,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -17,6 +17,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -1,9 +1,7 @@
{
"operationId": "getStreams",
"summary": "Get a list of Streams",
"tags": [
"Streams"
],
"tags": ["Streams"],
"parameters": [
{
"in": "query",
@ -39,9 +37,8 @@
"content": {
"application/json": {
"schema": {
"required": [
"result"
],
"type": "object",
"required": ["result"],
"properties": {
"result": {
"$ref": "#/components/schemas/StreamList"
@ -61,9 +58,7 @@
"direction": "ASC"
}
],
"items": [
"TODO"
]
"items": ["TODO"]
}
}
}
@ -72,4 +67,4 @@
}
}
}
}
}

View File

@ -17,6 +17,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -1,9 +1,7 @@
{
"operationId": "getStream",
"summary": "Get a Stream object by ID",
"tags": [
"Streams"
],
"tags": ["Streams"],
"parameters": [
{
"in": "path",
@ -23,9 +21,8 @@
"content": {
"application/json": {
"schema": {
"required": [
"result"
],
"type": "object",
"required": ["result"],
"properties": {
"result": {
"$ref": "#/components/schemas/StreamObject"
@ -43,4 +40,4 @@
}
}
}
}
}

View File

@ -1,9 +1,7 @@
{
"operationId": "updateStream",
"summary": "Update an existing Stream",
"tags": [
"Streams"
],
"tags": ["Streams"],
"parameters": [
{
"in": "path",
@ -32,9 +30,8 @@
"content": {
"application/json": {
"schema": {
"required": [
"result"
],
"type": "object",
"required": ["result"],
"properties": {
"result": {
"$ref": "#/components/schemas/StreamObject"
@ -52,4 +49,4 @@
}
}
}
}
}

View File

@ -8,6 +8,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -17,6 +17,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -8,6 +8,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -37,6 +37,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -17,6 +17,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -21,6 +21,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -21,6 +21,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -30,6 +30,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -37,6 +37,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -38,6 +38,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {

View File

@ -29,6 +29,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["result"],
"properties": {
"result": {