From 9e479795fa0a385ceeb7a9b3790000728f60b5c7 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Thu, 16 Feb 2023 19:01:26 -0600 Subject: [PATCH] fix(api): add sources section to extras schema --- api/schemas/extras.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/api/schemas/extras.yaml b/api/schemas/extras.yaml index 78c4c9b1..8feb24a3 100644 --- a/api/schemas/extras.yaml +++ b/api/schemas/extras.yaml @@ -47,6 +47,17 @@ $defs: scale: type: number + source_model: + type: object + required: [name, source] + properties: + format: + type: string + name: + type: string + source: + type: string + type: object additionalProperties: False properties: @@ -68,3 +79,9 @@ properties: oneOf: - $ref: "#/$defs/legacy_tuple" - $ref: "#/$defs/upscaling_model" + sources: + type: array + items: + oneOf: + - $ref: "#/$defs/legacy_tuple" + - $ref: "#/$defs/source_model" \ No newline at end of file