-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathschemas.ts
More file actions
40 lines (35 loc) · 1.06 KB
/
schemas.ts
File metadata and controls
40 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/** AUTOGENERATED - DO NOT EDIT **/
/* tslint:disable */
/* eslint-disable */
import { UnknownEnumNumberValue, UnknownEnumStringValue } from "./models"
import { z } from "zod"
export const s_Enumerations = z.object({
colors: z.union([
z.enum(["red", "green", "blue"]),
z.string().transform((it) => it as typeof it & UnknownEnumStringValue),
]),
starRatings: z.union([
z.literal(1),
z.literal(2),
z.literal(3),
z.number().transform((it) => it as typeof it & UnknownEnumNumberValue),
]),
})
export const s_RandomNumber = z.object({
result: z.coerce.number().optional(),
params: z
.object({
min: z.coerce.number().optional(),
max: z.coerce.number().optional(),
forbidden: z.array(z.coerce.number()).optional(),
})
.optional(),
})
export const s_getHeadersUndeclaredJson200Response = z.object({
rawHeaders: z.unknown().optional(),
typedHeaders: z.unknown().optional(),
})
export const s_getHeadersRequestJson200Response = z.object({
rawHeaders: z.unknown().optional(),
typedHeaders: z.unknown().optional(),
})