Skip to content

Commit

Permalink
fix openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7d8 committed Dec 5, 2024
1 parent 07ac035 commit 0c6e0d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
}
},

Expand Down

0 comments on commit 0c6e0d1

Please sign in to comment.