Skip to content

Commit

Permalink
feat: add hide props in detail types for elysiajs/elysia-swagger#137
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Aug 2, 2024
1 parent a0c417c commit ac6cf24
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 ac6cf24

Please sign in to comment.