-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump skuba from 7.0.1 to 7.1.1 (#161)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: samchungy <samchungy@gmail.com>
- Loading branch information
1 parent
8b77cea
commit 7faf986
Showing
34 changed files
with
568 additions
and
434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
/.gantry/**/*.yml | ||
gantry*.yaml | ||
gantry*.yml | ||
pnpm-lock.yaml | ||
# end managed by skuba | ||
|
||
examples/**/*.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import type { ZodBranded, ZodType } from 'zod'; | ||
import type { ZodBranded, ZodTypeAny } from 'zod'; | ||
|
||
import type { oas31 } from '../../../openapi3-ts/dist'; | ||
import { type SchemaState, createSchemaObject } from '../../schema'; | ||
export const createBrandedSchema = ( | ||
zodBranded: ZodBranded<any, any>, | ||
export const createBrandedSchema = < | ||
T extends ZodTypeAny, | ||
B extends string | number | symbol, | ||
>( | ||
zodBranded: ZodBranded<T, B>, | ||
state: SchemaState, | ||
): oas31.SchemaObject | oas31.ReferenceObject => | ||
createSchemaObject(zodBranded._def.type as ZodType, state, ['brand']); | ||
createSchemaObject(zodBranded._def.type, state, ['brand']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import type { ZodCatch, ZodType } from 'zod'; | ||
import type { ZodCatch, ZodTypeAny } from 'zod'; | ||
|
||
import type { oas31 } from '../../../openapi3-ts/dist'; | ||
import { type SchemaState, createSchemaObject } from '../../schema'; | ||
|
||
export const createCatchSchema = ( | ||
zodCatch: ZodCatch<any>, | ||
export const createCatchSchema = <T extends ZodTypeAny>( | ||
zodCatch: ZodCatch<T>, | ||
state: SchemaState, | ||
): oas31.SchemaObject | oas31.ReferenceObject => | ||
createSchemaObject(zodCatch._def.innerType as ZodType, state, ['catch']); | ||
createSchemaObject(zodCatch._def.innerType, state, ['catch']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import type { ZodLazy, ZodType } from 'zod'; | ||
import type { ZodLazy, ZodTypeAny } from 'zod'; | ||
|
||
import type { oas31 } from '../../../openapi3-ts/dist'; | ||
import { type SchemaState, createSchemaObject } from '../../schema'; | ||
|
||
export const createLazySchema = ( | ||
zodLazy: ZodLazy<any>, | ||
export const createLazySchema = <T extends ZodTypeAny>( | ||
zodLazy: ZodLazy<T>, | ||
state: SchemaState, | ||
): oas31.ReferenceObject | oas31.SchemaObject => { | ||
const innerSchema = zodLazy._def.getter() as ZodType; | ||
const innerSchema = zodLazy._def.getter(); | ||
return createSchemaObject(innerSchema, state, ['lazy schema']); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.