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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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