Browse Source

fix: make column_name property only required for normal column

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5222/head
Pranav C 2 years ago
parent
commit
5074b5ff80
  1. 3
      packages/nocodb-sdk/src/lib/Api.ts
  2. 10
      packages/nocodb/src/schema/swagger.json

3
packages/nocodb-sdk/src/lib/Api.ts

@ -428,7 +428,6 @@ export type ColumnReqType = (
NormalColumnRequestType &
RollupColumnReqType)
) & {
column_name: string;
/** Column order in a specific view */
column_order?: {
order?: number;
@ -1373,7 +1372,7 @@ export interface NormalColumnRequestType {
cc?: StringOrNullType;
/** Model for StringOrNull */
cdf?: StringOrNullType;
column_name?: string;
column_name: string;
/** Model for StringOrNull */
csn?: StringOrNullType;
dt?: string;

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

@ -8463,9 +8463,6 @@
},
{
"properties": {
"column_name": {
"type": "string"
},
"column_order": {
"description": "Column order in a specific view",
"properties": {
@ -8484,7 +8481,7 @@
"type": "string"
}
},
"required": ["column_name", "title"]
"required": ["title"]
}
],
"description": "Model for Column Request",
@ -10730,7 +10727,10 @@
}
},
"title": "Normal Column Request Model",
"type": "object"
"type": "object",
"required": [
"column_name"
]
},
"OrgUserReq": {
"description": "Model for Organisation User Update Request",

Loading…
Cancel
Save