Skip to content

Commit

Permalink
fix TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
AGalabov committed Mar 1, 2024
1 parent 82e227d commit 142f119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openapi-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ export class OpenAPIGenerator {

private getBodyContent(content: ZodContentObject): ContentObject {
return mapValues(content, config => {
if (!isAnyZodType(config.schema)) {
if (!config || !isAnyZodType(config.schema)) {
return config;
}

Expand Down

0 comments on commit 142f119

Please sign in to comment.