|
|
@ -26,10 +26,12 @@ export default async ( |
|
|
|
const colOpt = await c.getColOptions<LinkToAnotherRecordColumn>( |
|
|
|
const colOpt = await c.getColOptions<LinkToAnotherRecordColumn>( |
|
|
|
ncMeta |
|
|
|
ncMeta |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
if (colOpt) { |
|
|
|
const relTable = await colOpt.getRelatedTable(ncMeta); |
|
|
|
const relTable = await colOpt.getRelatedTable(ncMeta); |
|
|
|
field.type = undefined; |
|
|
|
field.type = undefined; |
|
|
|
field.$ref = `#/components/schemas/${relTable.title}Request`; |
|
|
|
field.$ref = `#/components/schemas/${relTable.title}Request`; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case UITypes.Formula: |
|
|
|
case UITypes.Formula: |
|
|
|
case UITypes.Lookup: |
|
|
|
case UITypes.Lookup: |
|
|
|