Skip to content

Commit 4e66438

Browse files
Himenonclaude
andcommitted
test(argo-rollout-test): update snapshot with formatting and version changes
test(snapshots): コード生成フォーマット変更に伴うスナップショットを再更新 前回のコミット後にpre-commitフックのformatterが1ファイルを修正したため、 コード生成の出力インデントが変わりスナップショットが古い状態になっていた。 test:code:gen を再実行して最新の生成結果でスナップショットを更新した。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 845c902 commit 4e66438

21 files changed

Lines changed: 215249 additions & 215450 deletions

test/__tests__/class/__snapshots__/argo-rollout-test.ts.snap

Lines changed: 3634 additions & 3634 deletions
Large diffs are not rendered by default.

test/__tests__/class/__snapshots__/cloudflare-test.ts.snap

Lines changed: 46886 additions & 46941 deletions
Large diffs are not rendered by default.

test/__tests__/class/__snapshots__/format.domain.ts.snap

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`Format Types > format.domain 1`] = `
44
"//
5-
// Generated by @himenon/openapi-typescript-code-generator v1.1.0
5+
// Generated by @himenon/openapi-typescript-code-generator
66
//
77
// OpenApi : 3.1.0
88
//
@@ -12,8 +12,8 @@ exports[`Format Types > format.domain 1`] = `
1212
1313
export namespace Schemas {
1414
export interface CustomType {
15-
name?: string;
16-
}
15+
name?: string;
16+
}
1717
export type BinaryFormat_String = Blob;
1818
export type IntOrStringFormat_String = number | string;
1919
export type CustomTypeFormat_String = CustomType;
@@ -23,8 +23,8 @@ export namespace Schemas {
2323
export type CustomTypeFormat_Int = CustomType;
2424
export type DateTimeFormat_Int = Date;
2525
export interface ObjectPropertyCustomType {
26-
date?: Date;
27-
}
26+
date?: Date;
27+
}
2828
export type Binary = Blob;
2929
export type IntOrString = number | string;
3030
export type AandB = A & B;
@@ -42,7 +42,7 @@ export interface QueryParameters {
4242
[key: string]: QueryParameter;
4343
}
4444
export type SuccessResponses = void;
45-
export namespace ErrorResponse { }
45+
export namespace ErrorResponse {}
4646
export interface Encoding {
4747
readonly contentType?: string;
4848
headers?: Record<string, any>;
@@ -63,7 +63,8 @@ export interface ApiClient<RequestOption> {
6363
}
6464
export class Client<RequestOption> {
6565
private baseUrl: string;
66-
constructor(private apiClient: ApiClient<RequestOption>, baseUrl: string) { this.baseUrl = baseUrl.replace(/\\/$/, ""); }
66+
constructor(private apiClient: ApiClient<RequestOption>, baseUrl: string) {
67+
this.baseUrl = baseUrl.replace(/\\/$/, "");
6768
}
68-
"
69+
}"
6970
`;

test/__tests__/class/__snapshots__/kubernetes-test.ts.snap

Lines changed: 37602 additions & 37606 deletions
Large diffs are not rendered by default.

test/__tests__/class/__snapshots__/multi-type.test.domain.ts.snap

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`Multi Type > apiClient 1`] = `
44
"//
5-
// Generated by @himenon/openapi-typescript-code-generator v1.1.0
5+
// Generated by @himenon/openapi-typescript-code-generator
66
//
77
// OpenApi : 3.0.1
88
//
@@ -62,46 +62,47 @@ export interface ApiClient<RequestOption> {
6262
}
6363
export class Client<RequestOption> {
6464
private baseUrl: string;
65-
constructor(private apiClient: ApiClient<RequestOption>, baseUrl: string) { this.baseUrl = baseUrl.replace(/\\/$/, ""); }
65+
constructor(private apiClient: ApiClient<RequestOption>, baseUrl: string) {
66+
this.baseUrl = baseUrl.replace(/\\/$/, "");
67+
}
6668
/**
67-
* operationId: putAnyOf
68-
* Request URI: /pets
69-
*/
70-
public async putAnyOf(params: Params$putAnyOf, option?: RequestOption): Promise<void> {
71-
const url = this.baseUrl + \`/pets\`;
72-
const headers = {
73-
"Content-Type": "application/json"
74-
};
75-
return this.apiClient.request({
76-
httpMethod: "PUT",
77-
url,
78-
headers,
79-
requestBody: params.requestBody
80-
}, option);
81-
}
69+
* operationId: putAnyOf
70+
* Request URI: /pets
71+
*/
72+
public async putAnyOf(params: Params$putAnyOf, option?: RequestOption): Promise<void> {
73+
const url = this.baseUrl + \`/pets\`;
74+
const headers = {
75+
"Content-Type": "application/json"
76+
};
77+
return this.apiClient.request({
78+
httpMethod: "PUT",
79+
url,
80+
headers,
81+
requestBody: params.requestBody
82+
}, option);
83+
}
8284
/**
83-
* operationId: patchOneOf
84-
* Request URI: /pets
85-
*/
86-
public async patchOneOf(params: Params$patchOneOf, option?: RequestOption): Promise<void> {
87-
const url = this.baseUrl + \`/pets\`;
88-
const headers = {
89-
"Content-Type": "application/json"
90-
};
91-
return this.apiClient.request({
92-
httpMethod: "PATCH",
93-
url,
94-
headers,
95-
requestBody: params.requestBody
96-
}, option);
97-
}
85+
* operationId: patchOneOf
86+
* Request URI: /pets
87+
*/
88+
public async patchOneOf(params: Params$patchOneOf, option?: RequestOption): Promise<void> {
89+
const url = this.baseUrl + \`/pets\`;
90+
const headers = {
91+
"Content-Type": "application/json"
92+
};
93+
return this.apiClient.request({
94+
httpMethod: "PATCH",
95+
url,
96+
headers,
97+
requestBody: params.requestBody
98+
}, option);
9899
}
99-
"
100+
}"
100101
`;
101102
102103
exports[`Multi Type > types 1`] = `
103104
"//
104-
// Generated by @himenon/openapi-typescript-code-generator v1.1.0
105+
// Generated by @himenon/openapi-typescript-code-generator
105106
//
106107
// OpenApi : 3.0.1
107108
//
@@ -111,16 +112,15 @@ exports[`Multi Type > types 1`] = `
111112
112113
export namespace Schemas {
113114
export interface Pet {
114-
pet_type: string;
115-
}
115+
pet_type: string;
116+
}
116117
export type Dog = Schemas.Pet & {
117-
bark?: boolean;
118-
breed?: "Dingo" | "Husky" | "Retriever" | "Shepherd";
119-
};
118+
bark?: boolean;
119+
breed?: "Dingo" | "Husky" | "Retriever" | "Shepherd";
120+
};
120121
export type Cat = Schemas.Pet & {
121-
hunts?: boolean;
122-
age?: number;
123-
};
124-
}
125-
"
122+
hunts?: boolean;
123+
age?: number;
124+
};
125+
}"
126126
`;

0 commit comments

Comments
 (0)