From 84e17cc9d793e2e6d03ea0d8df22877ad0dd3f7a Mon Sep 17 00:00:00 2001 From: shunsei Date: Fri, 1 Nov 2024 23:43:51 +0900 Subject: [PATCH] Regenerate orval (#113) --- frontend/client/client.schemas.ts | 5 +++-- frontend/test/mocks/model/getBooksParams.ts | 2 +- frontend/test/mocks/model/getLoansParams.ts | 3 ++- orval.config.dev.js | 10 ++++++++++ 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/frontend/client/client.schemas.ts b/frontend/client/client.schemas.ts index d4832e2a..61e67cfb 100644 --- a/frontend/client/client.schemas.ts +++ b/frontend/client/client.schemas.ts @@ -75,7 +75,8 @@ page?: string; */ limit?: string; /** - * ソート順 + * ソート順 0: ユーザID昇順 1: ユーザID降順 2: 書籍ID昇順 3: 書籍ID降順 4: 貸出日昇順 5: 貸出日降順 + */ sort?: GetLoansSort; }; @@ -241,7 +242,7 @@ publisher?: string; */ isbn?: string; /** - * ソート順 1: id昇順 2: id降順 3: 出版日昇順 4: 出版日降順 + * ソート順 0: id昇順 1: id降順 2: 出版日昇順 3: 出版日降順 */ sort?: GetBooksSort; diff --git a/frontend/test/mocks/model/getBooksParams.ts b/frontend/test/mocks/model/getBooksParams.ts index 63e1de73..71927606 100644 --- a/frontend/test/mocks/model/getBooksParams.ts +++ b/frontend/test/mocks/model/getBooksParams.ts @@ -32,7 +32,7 @@ publisher?: string; */ isbn?: string; /** - * ソート順 1: id昇順 2: id降順 3: 出版日昇順 4: 出版日降順 + * ソート順 0: id昇順 1: id降順 2: 出版日昇順 3: 出版日降順 */ sort?: GetBooksSort; diff --git a/frontend/test/mocks/model/getLoansParams.ts b/frontend/test/mocks/model/getLoansParams.ts index 275d5ecf..2edfd3aa 100644 --- a/frontend/test/mocks/model/getLoansParams.ts +++ b/frontend/test/mocks/model/getLoansParams.ts @@ -24,7 +24,8 @@ page?: string; */ limit?: string; /** - * ソート順 + * ソート順 0: ユーザID昇順 1: ユーザID降順 2: 書籍ID昇順 3: 書籍ID降順 4: 貸出日昇順 5: 貸出日降順 + */ sort?: GetLoansSort; }; diff --git a/orval.config.dev.js b/orval.config.dev.js index 53fcce58..0dba8087 100644 --- a/orval.config.dev.js +++ b/orval.config.dev.js @@ -39,4 +39,14 @@ module.exports = { }, }, }, + zod: { + input: { + target: './api/bundle.yml', + }, + output: { + client: 'zod', + mode: 'single', + target: './backend/src/schema.ts', + }, + }, };