Browse Source

fix(nocodb): swagger errors

pull/5253/head
Wing-Kam Wong 2 years ago
parent
commit
09c7068f78
  1. 64
      packages/nocodb/src/schema/swagger.json

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

@ -3425,7 +3425,6 @@
"lock_type": "collaborative", "lock_type": "collaborative",
"meta": {}, "meta": {},
"order": 1, "order": 1,
"password": null,
"project_id": "p_xm3thidrblw4n7", "project_id": "p_xm3thidrblw4n7",
"show": 1, "show": 1,
"show_system_fields": null, "show_system_fields": null,
@ -6967,20 +6966,24 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"type": "string" "type": "string",
"example": "76d44b86-bc65-4500-8956-ab512c80ab25"
}, },
"name": "sharedViewUuid", "name": "sharedViewUuid",
"in": "path", "in": "path",
"required": true "required": true,
"description": "Shared View UUID"
}, },
{ {
"schema": { "schema": {
"type": "string", "type": "string",
"enum": ["csv", "excel"] "enum": ["csv", "excel"],
"example": "csv"
}, },
"name": "type", "name": "type",
"in": "path", "in": "path",
"required": true "required": true,
"description": "Export Type"
} }
], ],
"get": { "get": {
@ -9066,6 +9069,8 @@
"virtual": null "virtual": null
} }
], ],
"title": "Column Model",
"type": "object",
"properties": { "properties": {
"ai": { "ai": {
"$ref": "#/components/schemas/Bool", "$ref": "#/components/schemas/Bool",
@ -9085,8 +9090,8 @@
"type": "string" "type": "string"
}, },
"cdf": { "cdf": {
"description": "Column Default", "$ref": "#/components/schemas/StringOrNull",
"type": "string" "description": "Column Default"
}, },
"clen": { "clen": {
"description": "Character Maximum Length", "description": "Character Maximum Length",
@ -9135,9 +9140,8 @@
"type": "string" "type": "string"
}, },
"csn": { "csn": {
"description": "Character Set Name", "$ref": "#/components/schemas/StringOrNull",
"example": "utf8mb4", "description": "Character Set Name"
"type": "string"
}, },
"ct": { "ct": {
"description": "Column Type", "description": "Column Type",
@ -9308,9 +9312,7 @@
"$ref": "#/components/schemas/Bool", "$ref": "#/components/schemas/Bool",
"description": "Is Visible?" "description": "Is Visible?"
} }
}, }
"title": "Column Model",
"type": "object"
}, },
"ColumnList": { "ColumnList": {
"description": "Model for Column List", "description": "Model for Column List",
@ -12642,20 +12644,18 @@
"password": "123456789" "password": "123456789"
} }
], ],
"title": "Shared View Request Model",
"type": "object",
"properties": { "properties": {
"meta": { "meta": {
"$ref": "#/components/schemas/Meta", "$ref": "#/components/schemas/Meta",
"description": "Meta data passing to Shared View such as if download is allowed or not." "description": "Meta data passing to Shared View such as if download is allowed or not."
}, },
"password": { "password": {
"description": "Password to restrict access", "$ref": "#/components/schemas/StringOrNull",
"example": "123456789", "description": "Password to restrict access"
"minLength": 8,
"type": "string"
} }
}, }
"title": "Shared View Request Model",
"type": "object"
}, },
"SignInReq": { "SignInReq": {
"description": "Model for Signin Request", "description": "Model for Signin Request",
@ -13219,6 +13219,8 @@
] ]
} }
], ],
"title": "Table Model",
"type": "object",
"properties": { "properties": {
"base_id": { "base_id": {
"description": "Unique Base ID", "description": "Unique Base ID",
@ -13226,10 +13228,10 @@
}, },
"columns": { "columns": {
"description": "The columns included in this table", "description": "The columns included in this table",
"type": "array",
"items": { "items": {
"$ref": "#/components/schemas/Column" "$ref": "#/components/schemas/Column"
}, }
"type": "array"
}, },
"columnsById": { "columnsById": {
"description": "Column Models grouped by IDs", "description": "Column Models grouped by IDs",
@ -13271,8 +13273,8 @@
"type": "string" "type": "string"
}, },
"tags": { "tags": {
"description": "Currently not in use", "$ref": "#/components/schemas/StringOrNull",
"type": "string" "description": "Currently not in use"
}, },
"title": { "title": {
"description": "Table Title", "description": "Table Title",
@ -13283,9 +13285,7 @@
"type": "string" "type": "string"
} }
}, },
"required": ["table_name", "title"], "required": ["table_name", "title"]
"title": "Table Model",
"type": "object"
}, },
"TableList": { "TableList": {
"description": "Model for Table List", "description": "Model for Table List",
@ -13747,6 +13747,8 @@
} }
} }
], ],
"title": "View Model",
"type": "object",
"properties": { "properties": {
"base_id": { "base_id": {
"$ref": "#/components/schemas/Id", "$ref": "#/components/schemas/Id",
@ -13798,8 +13800,8 @@
"type": "number" "type": "number"
}, },
"uuid": { "uuid": {
"description": "UUID of the view", "$ref": "#/components/schemas/StringOrNull",
"type": "string" "description": "UUID of the view"
}, },
"view": { "view": {
"anyOf": [ "anyOf": [
@ -13822,9 +13824,7 @@
"description": "Associated View Model" "description": "Associated View Model"
} }
}, },
"required": ["fk_model_id", "show", "title", "type"], "required": ["fk_model_id", "show", "title", "type"]
"title": "View Model",
"type": "object"
}, },
"ViewList": { "ViewList": {
"description": "Model for View List", "description": "Model for View List",

Loading…
Cancel
Save