Merge pull request #2891 from ahobsonsayers/master

Tweaks to custom metadata provider schema
This commit is contained in:
advplyr 2024-04-29 17:13:04 -05:00 committed by GitHub
commit c55988102d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,15 +1,16 @@
openapi: 3.0.0 openapi: 3.0.0
servers:
servers:
- url: https://example.com - url: https://example.com
description: Local server description: Local server
info: info:
license: title: Custom Metadata Provider
version: 0.1.0
license:
name: MIT name: MIT
url: https://opensource.org/licenses/MIT url: https://opensource.org/licenses/MIT
title: Custom Metadata Provider
version: 0.1.0
security: security:
- api_key: [] - api_key: []
@ -19,8 +20,9 @@ paths:
description: Search for books description: Search for books
operationId: search operationId: search
summary: Search for books summary: Search for books
security: security:
- api_key: [] - api_key: []
parameters: parameters:
- name: query - name: query
in: query in: query
@ -32,6 +34,7 @@ paths:
required: false required: false
schema: schema:
type: string type: string
responses: responses:
"200": "200":
description: OK description: OK
@ -72,9 +75,17 @@ paths:
error: error:
type: string type: string
components: components:
securitySchemes:
api_key:
type: apiKey
name: AUTHORIZATION
in: header
schemas: schemas:
BookMetadata: BookMetadata:
type: object type: object
required:
- title
properties: properties:
title: title:
type: string type: string
@ -110,26 +121,20 @@ components:
series: series:
type: array type: array
items: items:
type: object $ref: "#/components/schemas/SeriesMetadata"
properties:
series:
type: string
required: true
sequence:
type: number
format: int64
language: language:
type: string type: string
duration: duration:
type: number type: integer
format: int64 format: int64
description: Duration in seconds description: Duration in seconds
required:
- title SeriesMetadata:
securitySchemes: type: object
api_key: required:
type: apiKey - series
name: AUTHORIZATION properties:
in: header series:
type: string
sequence:
type: string