Skip to content

Commit

Permalink
pubdate -> hold_date
Browse files Browse the repository at this point in the history
  • Loading branch information
ursm committed Sep 13, 2024
1 parent a5663c5 commit ba28f40
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 @@ -233,8 +233,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 @@ -245,7 +245,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 @@ -517,9 +517,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 @@ -533,14 +533,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 @@ -497,9 +497,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 @@ -513,14 +513,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 ba28f40

Please sign in to comment.