Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix API specification #3144

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions config/vufind/SearchApiRecordFields.yaml
Original file line number Diff line number Diff line change
@@ -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
@@ -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
13 changes: 7 additions & 6 deletions themes/root/templates/searchapi/openapi.phtml
Original file line number Diff line number Diff line change
@@ -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"
}
}