-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
The below issue has recurred with the latest versions of the @anatine packages alongside NestJS 11.
Here's a copy/paste from the original issue -
For createZodDto() usage such as:
const contactGroupsSchema = z.object({
contactGroups: z.string().array().optional().describe('Filter by Xero Contact Groups'),
});
class ContactGroupsDto extends createZodDto(contactGroupsSchema) {}
produces
{
"name": "contactGroups",
"required": false,
"in": "query",
"description": "Filter by Xero Contact Groups",
"schema": {
"type": "array"
}
}
rather than
{
"name": "contactGroups",
"required": false,
"in": "query",
"description": "Filter by Xero Contact Groups",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
Metadata
Metadata
Assignees
Labels
No labels