浏览代码

Fix openapi schema format

Jamie Curnow 1 月之前
父节点
当前提交
e5aae1f365
共有 1 个文件被更改,包括 4 次插入6 次删除
  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"],
 	"required": ["current", "latest", "update_available"],
 	"properties": {
 	"properties": {
 		"current": {
 		"current": {
-			"type": "string",
+			"type": ["string", "null"],
 			"description": "Current version string",
 			"description": "Current version string",
-			"example": "v2.10.1",
-			"nullable": true
+			"example": "v2.10.1"
 		},
 		},
 		"latest": {
 		"latest": {
-			"type": "string",
+			"type": ["string", "null"],
 			"description": "Latest version string",
 			"description": "Latest version string",
-			"example": "v2.13.4",
-			"nullable": true
+			"example": "v2.13.4"
 		},
 		},
 		"update_available": {
 		"update_available": {
 			"type": "boolean",
 			"type": "boolean",