From 0c6e0d1698b8b63c4932b3f1a0780ace7c9dc37a Mon Sep 17 00:00:00 2001 From: Robert Jansen Date: Thu, 5 Dec 2024 19:03:33 +0000 Subject: [PATCH] fix openapi --- src/api/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index d6d6b75..5a4771d 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -74,9 +74,10 @@ server.schema('Extension', { additionalProperties: { type: 'object', properties: { + url: { type: 'string' }, price: { type: 'number' }, - url: { type: 'string' } - }, required: ['price', 'url'] + currency: { type: 'string', enum: Array.from(database.schema.currency) } + }, required: ['url', 'price', 'currency'] } },