mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-01 23:38:21 +00:00
base swagger user now always array
This commit is contained in:
@@ -184,6 +184,20 @@ async function processColumnToSwaggerField(
|
||||
field.format = 'uri';
|
||||
field.virtual = false;
|
||||
break;
|
||||
case UITypes.User: {
|
||||
const userProperties = {
|
||||
id: { type: 'string' },
|
||||
email: { type: 'string' },
|
||||
display_name: { type: ['string', 'null'] },
|
||||
};
|
||||
field.type = ['array', 'null'];
|
||||
field.items = {
|
||||
type: 'object',
|
||||
properties: userProperties,
|
||||
};
|
||||
field.virtual = false;
|
||||
break;
|
||||
}
|
||||
case UITypes.LastModifiedTime:
|
||||
field.type = ['string', 'null'];
|
||||
field.format = 'date-time';
|
||||
|
||||
Reference in New Issue
Block a user