Skip to content

Commit

Permalink
feat(core): include originalOperation in VerbOptions (#923)
Browse files Browse the repository at this point in the history
* feat: include originalSchema in VerbOptions

* change to originalOperation

---------

Co-authored-by: Victor <[email protected]>
  • Loading branch information
Eric Butler and anymaniax authored Sep 28, 2023
1 parent e78cf87 commit 7ea9b85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/generators/verbs-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ const generateVerbOptions = async ({
override,
doc,
deprecated,
originalOperation: operation,
};

const transformer = await dynamicImport(
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ export type GeneratorVerbOptions = {
formUrlEncoded?: GeneratorMutator;
override: NormalizedOverrideOutput;
deprecated?: boolean;
originalOperation: OperationObject;
};

export type GeneratorVerbsOptions = GeneratorVerbOptions[];
Expand Down

1 comment on commit 7ea9b85

@vercel
Copy link

@vercel vercel bot commented on 7ea9b85 Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.