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'] } },