@ -73,6 +73,10 @@ const getSchemaComponentsProperties = (
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (field.description) {
|
||||||
|
itemProperty.description = field.description;
|
||||||
|
}
|
||||||
|
|
||||||
if (Object.keys(itemProperty).length) {
|
if (Object.keys(itemProperty).length) {
|
||||||
node[field.name] = itemProperty;
|
node[field.name] = itemProperty;
|
||||||
}
|
}
|
||||||
@ -98,6 +102,7 @@ const computeSchemaComponent = (
|
|||||||
): OpenAPIV3.SchemaObject => {
|
): OpenAPIV3.SchemaObject => {
|
||||||
const result = {
|
const result = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
|
description: item.description,
|
||||||
properties: getSchemaComponentsProperties(item),
|
properties: getSchemaComponentsProperties(item),
|
||||||
example: {},
|
example: {},
|
||||||
} as OpenAPIV3.SchemaObject;
|
} as OpenAPIV3.SchemaObject;
|
||||||
|
|||||||
Reference in New Issue
Block a user