diff --git a/packages/cli/openapi-parser/src/openapi/v3/generateIr.ts b/packages/cli/openapi-parser/src/openapi/v3/generateIr.ts index 061ce4e13ac..18a92bf99f5 100644 --- a/packages/cli/openapi-parser/src/openapi/v3/generateIr.ts +++ b/packages/cli/openapi-parser/src/openapi/v3/generateIr.ts @@ -186,7 +186,7 @@ export function generateIr({ taskContext.logger.debug(`Converted schema ${key}`); } - const exampleEndpointFactory = new ExampleEndpointFactory(schemasWithoutDiscriminants, context.logger); + const exampleEndpointFactory = new ExampleEndpointFactory(schemasWithDiscriminants, context.logger); const endpoints = endpointsWithExample.map((endpointWithExample): Endpoint => { // if x-fern-examples is not present, generate an example const extensionExamples = endpointWithExample.examples;