Skip to content

Commit 7ea9b85

Browse files
Eric Butleranymaniax
Eric Butler
andauthoredSep 28, 2023
feat(core): include originalOperation in VerbOptions (#923)
* feat: include originalSchema in VerbOptions * change to originalOperation --------- Co-authored-by: Victor <victor@emaniax.io>
1 parent e78cf87 commit 7ea9b85

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎packages/core/src/generators/verbs-options.ts

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ const generateVerbOptions = async ({
184184
override,
185185
doc,
186186
deprecated,
187+
originalOperation: operation,
187188
};
188189

189190
const transformer = await dynamicImport(

‎packages/core/src/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ export type GeneratorVerbOptions = {
527527
formUrlEncoded?: GeneratorMutator;
528528
override: NormalizedOverrideOutput;
529529
deprecated?: boolean;
530+
originalOperation: OperationObject;
530531
};
531532

532533
export type GeneratorVerbsOptions = GeneratorVerbOptions[];

1 commit comments

Comments
 (1)

vercel[bot] commented on Sep 28, 2023

@vercel[bot]
Please sign in to comment.