Skip to content

Commit

Permalink
fix(openapi): generate examples with latest schemas (#4329)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored Aug 18, 2024
1 parent 44344da commit 5d57ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/openapi-parser/src/openapi/v3/generateIr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d57ab0

Please sign in to comment.