mirror of
https://github.com/twentyhq/twenty.git
synced 2024-09-11 23:37:21 +03:00
parent
b90b3e762e
commit
547145389c
@ -73,6 +73,10 @@ const getSchemaComponentsProperties = (
|
||||
break;
|
||||
}
|
||||
|
||||
if (field.description) {
|
||||
itemProperty.description = field.description;
|
||||
}
|
||||
|
||||
if (Object.keys(itemProperty).length) {
|
||||
node[field.name] = itemProperty;
|
||||
}
|
||||
@ -98,6 +102,7 @@ const computeSchemaComponent = (
|
||||
): OpenAPIV3.SchemaObject => {
|
||||
const result = {
|
||||
type: 'object',
|
||||
description: item.description,
|
||||
properties: getSchemaComponentsProperties(item),
|
||||
example: {},
|
||||
} as OpenAPIV3.SchemaObject;
|
||||
|
Loading…
Reference in New Issue
Block a user