Skip to content

Commit

Permalink
refresh outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
inkognitro committed Oct 6, 2024
1 parent e47cec3 commit 7838ffa
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 15 deletions.
4 changes: 3 additions & 1 deletion example-outputs/binance-with-zod/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ export type PathParams = {

export type QueryParams = {
[paramName: string]:
| undefined
| null
| QueryParams
| QueryParams[]
| string
Expand All @@ -129,7 +131,7 @@ export type RequestHeaders = {
};

export type RequestCookies = {
[cookieName: string]: string;
[cookieName: string]: string | number;
};

export type RequestBody =
Expand Down
4 changes: 3 additions & 1 deletion example-outputs/binance/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export type PathParams = {

export type QueryParams = {
[paramName: string]:
| undefined
| null
| QueryParams
| QueryParams[]
| string
Expand All @@ -112,7 +114,7 @@ export type RequestHeaders = {
};

export type RequestCookies = {
[cookieName: string]: string;
[cookieName: string]: string | number;
};

export type RequestBody =
Expand Down
4 changes: 3 additions & 1 deletion example-outputs/petstore1-with-zod/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ export type PathParams = {

export type QueryParams = {
[paramName: string]:
| undefined
| null
| QueryParams
| QueryParams[]
| string
Expand All @@ -129,7 +131,7 @@ export type RequestHeaders = {
};

export type RequestCookies = {
[cookieName: string]: string;
[cookieName: string]: string | number;
};

export type RequestBody =
Expand Down
4 changes: 2 additions & 2 deletions example-outputs/petstore1-with-zod/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ export type $202AcceptedResponse<S extends number = any> = ResponseUnion<
S,
any,
{
'Retry-After': string;
'Retry-After'?: string;
}
>;

export const $202AcceptedResponseSchema = {
headersZodSchema: z.object({
'Retry-After': z.number().int().safe().finite(),
'Retry-After': z.string().optional(),
}),
bodyByContentType: {},
};
Expand Down
4 changes: 3 additions & 1 deletion example-outputs/petstore1/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export type PathParams = {

export type QueryParams = {
[paramName: string]:
| undefined
| null
| QueryParams
| QueryParams[]
| string
Expand All @@ -112,7 +114,7 @@ export type RequestHeaders = {
};

export type RequestCookies = {
[cookieName: string]: string;
[cookieName: string]: string | number;
};

export type RequestBody =
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/petstore1/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export type $202AcceptedResponse<S extends number = any> = ResponseUnion<
S,
any,
{
'Retry-After': string;
'Retry-After'?: string;
}
>;

Expand Down
4 changes: 3 additions & 1 deletion example-outputs/petstore2-with-zod/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ export type PathParams = {

export type QueryParams = {
[paramName: string]:
| undefined
| null
| QueryParams
| QueryParams[]
| string
Expand All @@ -129,7 +131,7 @@ export type RequestHeaders = {
};

export type RequestCookies = {
[cookieName: string]: string;
[cookieName: string]: string | number;
};

export type RequestBody =
Expand Down
8 changes: 4 additions & 4 deletions example-outputs/petstore2-with-zod/loginUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export const loginUserEndpointSchema = {
responseByStatus: {
'200': {
headersZodSchema: z.object({
'X-Rate-Limit': z.number().int().safe().finite(),
'X-Expires-After': z.string().datetime(), // date-time
'X-Rate-Limit': z.string().optional(),
'X-Expires-After': z.string().datetime().optional(), // date-time
}),
bodyByContentType: {
'application/xml': {
Expand Down Expand Up @@ -55,8 +55,8 @@ export type LoginUserResponse =
| ResponseBodyData<'application/xml', string>
| ResponseBodyData<'application/json', string>,
{
'X-Rate-Limit': string;
'X-Expires-After': string; // date-time
'X-Rate-Limit'?: string;
'X-Expires-After'?: string; // date-time
}
>
| ResponseUnion<400>;
Expand Down
4 changes: 3 additions & 1 deletion example-outputs/petstore2/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export type PathParams = {

export type QueryParams = {
[paramName: string]:
| undefined
| null
| QueryParams
| QueryParams[]
| string
Expand All @@ -112,7 +114,7 @@ export type RequestHeaders = {
};

export type RequestCookies = {
[cookieName: string]: string;
[cookieName: string]: string | number;
};

export type RequestBody =
Expand Down
4 changes: 2 additions & 2 deletions example-outputs/petstore2/loginUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export type LoginUserResponse =
| ResponseBodyData<'application/xml', string>
| ResponseBodyData<'application/json', string>,
{
'X-Rate-Limit': string;
'X-Expires-After': string; // date-time
'X-Rate-Limit'?: string;
'X-Expires-After'?: string; // date-time
}
>
| ResponseUnion<400>;
Expand Down

0 comments on commit 7838ffa

Please sign in to comment.