Karsten
3 years agoNew Contributor
Schema in Swagger Editor?
Hello everyone, totally new to Swagger and I'm struggeling with creating a schema for an API response: {"1236211": "0.9375959", "1174144": "0.8684537", "1236205": "0.8637224", "1213616": "0.845...
- 3 years ago
Howdy Karsten ,
Alas we all have to deal with odd APIs/Schemas 😄
For that you'd be best looking at https://swagger.io/docs/specification/data-models/dictionaries/. One thing to keep in mind, is that based on the JSON I see here, they are both "strings" not numbers.
Here is an example for you: https://app.swaggerhub.com/apis/plett/additional-properties/1.0.0#/default/get_name_your_fields