We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d03494 commit 2d80cfdCopy full SHA for 2d80cfd
packages/zod-nestjs/src/lib/create-zod-dto.ts
@@ -148,6 +148,10 @@ export const createZodDto = <T extends OpenApiZodAny>(
148
convertedSchemaObject.type = 'string'; // There ist no explicit null value in OpenAPI 3.0
149
convertedSchemaObject.nullable = true;
150
}
151
+ // Array handling (NestJS references 'isArray' boolean)
152
+ if (convertedSchemaObject.type === 'array') {
153
+ convertedSchemaObject.isArray = true;
154
+ }
155
// Exclusive minimum and maximum
156
const { exclusiveMinimum, exclusiveMaximum } = schemaObject;
157
if (exclusiveMinimum !== undefined) {
0 commit comments