schema
schema copied to clipboard
Handle decimal
I'm using schema to test response schema in django rest framework-base apis. We use decimal field to handle arithmetics, but when I test the response with schema we get
Decimal('37.0') should be instance of 'float'
Would it be possible to add decimals as a type, or at least gracefully handle them to match as a float?
Can you post the relevant part of your schema? It looks to me that you aren't converting them to decimals.