Skip to content

Commit

Permalink
Fix API specification
Browse files Browse the repository at this point in the history
  • Loading branch information
xmorave2 committed Oct 5, 2023
1 parent 3622371 commit 9132ced
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
7 changes: 1 addition & 6 deletions config/vufind/SearchApiRecordFields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ accessRestrictions:
authors:
vufind.method: getDeduplicatedAuthors
vufind.default: true
description: >-
Deduplicated author information including primary, corporate and secondary
authors
$ref: '#/components/schemas/Authors'
awards:
vufind.method: getAwards
Expand Down Expand Up @@ -130,9 +127,7 @@ formats:
fullRecord:
vufind.method: "Formatter::getFullRecord"
description: Full metadata record (typically XML)
type: array
items:
type: string
type: string
generalNotes:
vufind.method: getGeneralNotes
description: General notes
Expand Down
13 changes: 7 additions & 6 deletions themes/root/templates/searchapi/openapi.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -234,25 +234,26 @@
"schemas": {
"Authors": {
"type": "object",
"description": "Deduplicated author information including primary, corporate and secondary authors",
"properties": {
"primary": {
"description": "Primary authors",
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/AuthorWithRoles"
}
},
"secondary": {
"description": "Secondary authors",
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/AuthorWithRoles"
}
},
"corporate": {
"description": "Corporate authors",
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/AuthorWithRoles"
}
}
Expand Down

0 comments on commit 9132ced

Please sign in to comment.