Skip to content

Commit

Permalink
Merge pull request #763 from kravetsone/add-details-hide
Browse files Browse the repository at this point in the history
feat: add `hide` props in `detail` types for hide route from OpenAPI/swagger document
  • Loading branch information
SaltyAom authored Aug 12, 2024
2 parents a0c417c + ac6cf24 commit a7ebfa4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,12 @@ export type Isolate<T> = {
[P in keyof T]: T[P]
}

export type DocumentDecoration = Partial<OpenAPIV3.OperationObject>
export type DocumentDecoration = Partial<OpenAPIV3.OperationObject> & {
/**
* Pass `true` to hide route from OpenAPI/swagger document
* */
hide?: boolean
}

export type LocalHook<
LocalSchema extends InputSchema,
Expand Down

0 comments on commit a7ebfa4

Please sign in to comment.