[Resolved] Doesn't Accept Number Data Type


#1

Hi there,

It looks like dropsource doesn’t accept the number data type in my open API spec doc.

I receive the following error when uploading the file:

The property price_usd is defined as number with an unsupported format currency. The accepted formats are:

  • float
  • double

I’m declaring the number type in my doc (instead of float or double) as per the Open API spec.

The only way the spec imports is if I use string for everything.

Here’s a link to my spec (line 86: price_usd):
https://app.swaggerhub.com/apis/tester1234/CoinMarketCap/0.1

Thank you


#2

It is complaining about the ‘format’ not the ‘type’.
In your spec you have ‘currency’ as your format.
So change where you have currency to either float or double