Browse Source

refactor(nocodb): mark response required

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
c37cee68c8
  1. 45
      packages/nocodb/src/schema/swagger.json

45
packages/nocodb/src/schema/swagger.json

@ -4558,7 +4558,7 @@
} }
], ],
"get": { "get": {
"summary": "List views", "summary": "List Views",
"operationId": "db-view-list", "operationId": "db-view-list",
"responses": { "responses": {
"200": { "200": {
@ -7702,7 +7702,8 @@
}, },
"description": "Paginated Info" "description": "Paginated Info"
} }
} },
"required": ["list", "pageInfo"]
}, },
"examples": { "examples": {
"Example 1": { "Example 1": {
@ -8442,7 +8443,8 @@
}, },
"description": "Paginated Info" "description": "Paginated Info"
} }
} },
"required": ["list", "pageInfo"]
}, },
"examples": { "examples": {
"Example 1": { "Example 1": {
@ -10364,6 +10366,7 @@
"id": "0xsi3jvwn7duo" "id": "0xsi3jvwn7duo"
}, },
"description": "the paginated result of the given key", "description": "the paginated result of the given key",
"required": ["list", "pageInfo"],
"properties": { "properties": {
"list": { "list": {
"type": "array", "type": "array",
@ -10382,11 +10385,13 @@
"$ref": "#/components/schemas/Paginated", "$ref": "#/components/schemas/Paginated",
"x-stoplight": { "x-stoplight": {
"id": "1gsbgwi9bg8s5" "id": "1gsbgwi9bg8s5"
} },
"description": "Paginated Info"
} }
} }
} }
} },
"required": ["key", "value"]
} }
}, },
"examples": { "examples": {
@ -10822,7 +10827,8 @@
}, },
"description": "Paginated info" "description": "Paginated info"
} }
} },
"required": ["list", "pageInfo"]
}, },
"examples": { "examples": {
"Example 1": { "Example 1": {
@ -11296,7 +11302,8 @@
} }
} }
} }
} },
"required": ["list"]
}, },
"examples": { "examples": {
"Example 1": { "Example 1": {
@ -11478,7 +11485,8 @@
"description": "Row ID", "description": "Row ID",
"example": "1" "example": "1"
} }
} },
"required": ["count", "row_id"]
} }
}, },
"examples": { "examples": {
@ -13546,7 +13554,8 @@
}, },
"description": "Model for Paginated" "description": "Model for Paginated"
} }
} },
"required": ["list", "pageInfo"]
}, },
"Attachment": { "Attachment": {
"description": "Model for Attachment", "description": "Model for Attachment",
@ -13948,7 +13957,8 @@
"$ref": "#/components/schemas/Paginated", "$ref": "#/components/schemas/Paginated",
"x-stoplight": { "x-stoplight": {
"id": "xqwcniocq37hk" "id": "xqwcniocq37hk"
} },
"description": "Paginated Info"
} }
}, },
"required": ["list", "pageInfo"] "required": ["list", "pageInfo"]
@ -17793,7 +17803,8 @@
} }
}, },
"pageInfo": { "pageInfo": {
"$ref": "#/components/schemas/Paginated" "$ref": "#/components/schemas/Paginated",
"description": "Paginated Info"
} }
}, },
"required": ["list", "pageInfo"] "required": ["list", "pageInfo"]
@ -18610,7 +18621,8 @@
} }
}, },
"pageInfo": { "pageInfo": {
"$ref": "#/components/schemas/Paginated" "$ref": "#/components/schemas/Paginated",
"description": "Paginated Info"
} }
}, },
"required": ["list", "pageInfo"] "required": ["list", "pageInfo"]
@ -18915,7 +18927,8 @@
"$ref": "#/components/schemas/Paginated", "$ref": "#/components/schemas/Paginated",
"x-stoplight": { "x-stoplight": {
"id": "0d98n6sfxfvft" "id": "0d98n6sfxfvft"
} },
"description": "Paginated Info"
} }
}, },
"required": ["list", "pageInfo"] "required": ["list", "pageInfo"]
@ -19150,7 +19163,8 @@
} }
}, },
"pageInfo": { "pageInfo": {
"$ref": "#/components/schemas/Paginated" "$ref": "#/components/schemas/Paginated",
"description": "Paginated Info"
} }
}, },
"required": ["list", "pageInfo"] "required": ["list", "pageInfo"]
@ -19829,7 +19843,8 @@
}, },
"example": "BadRequest [Error]: <ERROR MESSAGE>" "example": "BadRequest [Error]: <ERROR MESSAGE>"
} }
} },
"required": ["msg"]
}, },
"examples": { "examples": {
"Example 1": { "Example 1": {

Loading…
Cancel
Save