diff --git a/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts b/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts index b26d230c10a..839eb8b7093 100644 --- a/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts +++ b/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts @@ -533,7 +533,7 @@ function injectAutogeneratedExamples( service, endpoint, typeDeclarations: ir.types, - skipOptionalRequestProperties: skipOptionalRequestProperties ?? true, + skipOptionalRequestProperties: false, generationResponse: { type: "success" } }); if (generatedExample.type === "failure") {