From d488b17869c0fc320581410e8cc05d1c82c60fa7 Mon Sep 17 00:00:00 2001 From: Arran Hobson Sayers Date: Mon, 29 Apr 2024 22:50:42 +0100 Subject: [PATCH] Update custom metadata provider schema --- custom-metadata-provider-specification.yaml | 57 +++++++++++---------- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git a/custom-metadata-provider-specification.yaml b/custom-metadata-provider-specification.yaml index 90df875b..71cbba23 100644 --- a/custom-metadata-provider-specification.yaml +++ b/custom-metadata-provider-specification.yaml @@ -1,15 +1,16 @@ openapi: 3.0.0 -servers: + +servers: - url: https://example.com - description: Local server + description: Local server + info: - license: + title: Custom Metadata Provider + version: 0.1.0 + license: name: MIT url: https://opensource.org/licenses/MIT - - title: Custom Metadata Provider - version: 0.1.0 security: - api_key: [] @@ -19,8 +20,9 @@ paths: description: Search for books operationId: search summary: Search for books - security: - - api_key: [] + security: + - api_key: [] + parameters: - name: query in: query @@ -32,6 +34,7 @@ paths: required: false schema: type: string + responses: "200": description: OK @@ -72,9 +75,17 @@ paths: error: type: string components: + securitySchemes: + api_key: + type: apiKey + name: AUTHORIZATION + in: header + schemas: BookMetadata: type: object + required: + - title properties: title: type: string @@ -110,26 +121,20 @@ components: series: type: array items: - type: object - properties: - series: - type: string - required: true - sequence: - type: number - format: int64 + $ref: "#/components/schemas/SeriesMetadata" language: type: string duration: - type: number + type: integer format: int64 description: Duration in seconds - required: - - title - securitySchemes: - api_key: - type: apiKey - name: AUTHORIZATION - in: header - - + + SeriesMetadata: + type: object + required: + - series + properties: + series: + type: string + sequence: + type: string