Skip to content

Commit

Permalink
pubdate -> hold_date
Browse files Browse the repository at this point in the history
  • Loading branch information
ursm committed Feb 23, 2024
1 parent 288880a commit 38dfe53
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
6 changes: 3 additions & 3 deletions schema/openapi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -247,7 +247,7 @@ export interface paths {
content: {
"application/json": {
/** Format: date */
pubdate: string | null;
hold_date: string;
};
};
};
Expand Down
13 changes: 5 additions & 8 deletions schema/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
13 changes: 5 additions & 8 deletions schema/openapi.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 38dfe53

Please sign in to comment.