From 38dfe5393462ce25fb231072df778235e9fea2fe Mon Sep 17 00:00:00 2001 From: Keita Urashima Date: Fri, 23 Feb 2024 16:12:50 +0900 Subject: [PATCH] pubdate -> hold_date --- schema/openapi.d.ts | 6 +++--- schema/openapi.yml | 13 +++++-------- schema/openapi.yml.erb | 13 +++++-------- 3 files changed, 13 insertions(+), 19 deletions(-) diff --git a/schema/openapi.d.ts b/schema/openapi.d.ts index 0add3c4e..b259e63d 100644 --- a/schema/openapi.d.ts +++ b/schema/openapi.d.ts @@ -235,8 +235,8 @@ export interface paths { }; }; }; - "/accessions/{id}/pubdate": { - /** @description Update the publication date of the accession. */ + "/accessions/{id}/hold_date": { + /** @description Update the hold date of the accession. */ put: { parameters: { path: { @@ -247,7 +247,7 @@ export interface paths { content: { "application/json": { /** Format: date */ - pubdate: string | null; + hold_date: string; }; }; }; diff --git a/schema/openapi.yml b/schema/openapi.yml index 0b1ab560..752b8786 100644 --- a/schema/openapi.yml +++ b/schema/openapi.yml @@ -514,9 +514,9 @@ paths: '404': $ref: '#/components/responses/NotFound' - /accessions/{id}/pubdate: + /accessions/{id}/hold_date: put: - description: Update the publication date of the accession. + description: Update the hold date of the accession. tags: - Accession @@ -530,14 +530,11 @@ paths: schema: type: object additionalProperties: false - required: [pubdate] + required: [hold_date] properties: - pubdate: - type: - - string - - 'null' - + hold_date: + type: string format: date responses: diff --git a/schema/openapi.yml.erb b/schema/openapi.yml.erb index 7b43c593..f41378d7 100644 --- a/schema/openapi.yml.erb +++ b/schema/openapi.yml.erb @@ -509,9 +509,9 @@ paths: '404': $ref: '#/components/responses/NotFound' - /accessions/{id}/pubdate: + /accessions/{id}/hold_date: put: - description: Update the publication date of the accession. + description: Update the hold date of the accession. tags: - Accession @@ -525,14 +525,11 @@ paths: schema: type: object additionalProperties: false - required: [pubdate] + required: [hold_date] properties: - pubdate: - type: - - string - - 'null' - + hold_date: + type: string format: date responses: