Skip to content

Commit

Permalink
fix: meta file gets information from package.json (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
Himenon committed Feb 3, 2024
1 parent e339701 commit 28cac39
Show file tree
Hide file tree
Showing 19 changed files with 43 additions and 42 deletions.
5 changes: 3 additions & 2 deletions src/meta.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export const Name = "@himenon/openapi-typescript-code-generator";
export const Version = "0.26.1";
import pkgJson from "../package.json" with { type: "json" };
export const Name = pkgJson.name;
export const Version = pkgJson.version;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Argo Rollout client.ts 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.0.0
//
Expand Down
2 changes: 1 addition & 1 deletion test/__tests__/class/__snapshots__/format.domain.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Format Types format.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down
2 changes: 1 addition & 1 deletion test/__tests__/class/__snapshots__/kubernetes-test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Kubernetes client-v1.18.5.ts 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.0.0
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Multi Type apiClient 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.0.1
//
Expand Down Expand Up @@ -101,7 +101,7 @@ export class Client<RequestOption> {
exports[`Multi Type types 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.0.1
//
Expand Down
4 changes: 2 additions & 2 deletions test/__tests__/class/__snapshots__/spit-code-test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Split Code apiClient 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -287,7 +287,7 @@ export class Client<RequestOption> {
exports[`Split Code types 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down
6 changes: 3 additions & 3 deletions test/__tests__/class/__snapshots__/template-only-test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Template Only api.test.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -192,7 +192,7 @@ export class Client<RequestOption> {
exports[`Template Only async-api.test.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -382,7 +382,7 @@ export class Client<RequestOption> {
exports[`Template Only infer.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down
6 changes: 3 additions & 3 deletions test/__tests__/class/__snapshots__/typedef-only-test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Typedef only Reference test that include nested properties 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.0.0
//
Expand Down Expand Up @@ -36,7 +36,7 @@ export namespace Schemas {

exports[`Typedef only typedef-api.test.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -336,7 +336,7 @@ export namespace RequestBodies {

exports[`Typedef only typedef-infer.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Typedef with template api.test.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -541,7 +541,7 @@ export class Client<RequestOption> {
exports[`Typedef with template api.v2.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -653,7 +653,7 @@ export class Client<RequestOption> {
exports[`Typedef with template async-api.test.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -1192,7 +1192,7 @@ export class Client<RequestOption> {
exports[`Typedef with template infer.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -1264,7 +1264,7 @@ export class Client<RequestOption> {
exports[`Typedef with template ref-access 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -1545,7 +1545,7 @@ export class Client<RequestOption> {
exports[`Typedef with template remote-ref-access 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Unknown client.ts 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Argo Rollout client.ts 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.0.0
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Format Types format.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Kubernetes client-v1.18.5.ts 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.0.0
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Multi Type apiClient 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.0.1
//
Expand Down Expand Up @@ -104,7 +104,7 @@ export type Client<RequestOption> = ReturnType<ClientFunction<RequestOption>>;
exports[`Multi Type types 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.0.1
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Split Code apiClient 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -290,7 +290,7 @@ export type Client<RequestOption> = ReturnType<ClientFunction<RequestOption>>;
exports[`Split Code types 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Template Only api.test.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -195,7 +195,7 @@ export type Client<RequestOption> = ReturnType<ClientFunction<RequestOption>>;
exports[`Template Only async-api.test.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -388,7 +388,7 @@ export type Client<RequestOption> = ReturnType<ClientFunction<RequestOption>>;
exports[`Template Only infer.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Typedef only Reference test that include nested properties 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.0.0
//
Expand Down Expand Up @@ -36,7 +36,7 @@ export namespace Schemas {

exports[`Typedef only typedef-api.test.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -336,7 +336,7 @@ export namespace RequestBodies {

exports[`Typedef only typedef-infer.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Typedef with template api.test.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -544,7 +544,7 @@ export type Client<RequestOption> = ReturnType<ClientFunction<RequestOption>>;
exports[`Typedef with template api.v2.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -659,7 +659,7 @@ export type Client<RequestOption> = ReturnType<ClientFunction<RequestOption>>;
exports[`Typedef with template async-api.test.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -1201,7 +1201,7 @@ export type Client<RequestOption> = ReturnType<ClientFunction<RequestOption>>;
exports[`Typedef with template infer.domain 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -1275,7 +1275,7 @@ export type Client<RequestOption> = ReturnType<ClientFunction<RequestOption>>;
exports[`Typedef with template ref-access 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down Expand Up @@ -1559,7 +1559,7 @@ export type Client<RequestOption> = ReturnType<ClientFunction<RequestOption>>;
exports[`Typedef with template remote-ref-access 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Unknown client.ts 1`] = `
"//
// Generated by @himenon/openapi-typescript-code-generator v0.26.1
// Generated by @himenon/openapi-typescript-code-generator
//
// OpenApi : 3.1.0
//
Expand Down

0 comments on commit 28cac39

Please sign in to comment.