|
|
@ -40,6 +40,12 @@ export default async ( |
|
|
|
case UITypes.Rollup: |
|
|
|
case UITypes.Rollup: |
|
|
|
field.type = 'number'; |
|
|
|
field.type = 'number'; |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case UITypes.Attachment: |
|
|
|
|
|
|
|
field.type = 'array'; |
|
|
|
|
|
|
|
field.items = { |
|
|
|
|
|
|
|
$ref: `#/components/schemas/Attachment`, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
field.virtual = false; |
|
|
|
field.virtual = false; |
|
|
|
SwaggerTypes.setSwaggerType(c, field, dbType); |
|
|
|
SwaggerTypes.setSwaggerType(c, field, dbType); |
|
|
@ -58,4 +64,5 @@ export interface SwaggerColumn { |
|
|
|
virtual?: boolean; |
|
|
|
virtual?: boolean; |
|
|
|
$ref?: any; |
|
|
|
$ref?: any; |
|
|
|
column: Column; |
|
|
|
column: Column; |
|
|
|
|
|
|
|
items?: any; |
|
|
|
} |
|
|
|
} |
|
|
|