Sfoglia il codice sorgente

Fix openapi schema format

Jamie Curnow 1 mese fa
parent
commit
e5aae1f365
1 ha cambiato i file con 4 aggiunte e 6 eliminazioni
  1. 4 6
      backend/schema/components/check-version-object.json

+ 4 - 6
backend/schema/components/check-version-object.json

@@ -5,16 +5,14 @@
 	"required": ["current", "latest", "update_available"],
 	"properties": {
 		"current": {
-			"type": "string",
+			"type": ["string", "null"],
 			"description": "Current version string",
-			"example": "v2.10.1",
-			"nullable": true
+			"example": "v2.10.1"
 		},
 		"latest": {
-			"type": "string",
+			"type": ["string", "null"],
 			"description": "Latest version string",
-			"example": "v2.13.4",
-			"nullable": true
+			"example": "v2.13.4"
 		},
 		"update_available": {
 			"type": "boolean",