yaml.representer.RepresenterError: ('cannot represent an object', Decimal('100')) #316
Labels
bug
Something isn't working
fix confirmation pending
issue has been fixed and confirmation from issue reporter is pending
Describe the bug
When running the
spectacular
command to generate a schema in version 0.13.2 I get the following error:To Reproduce
Add the following field to any serializer.
The problem is using
Decimal
formin_value
andmax_value
. Changing those to just integers (1 and 100) solves the issue, but I think using Decimals should be supported too.Expected behavior
The schema should be generated successfully.
The text was updated successfully, but these errors were encountered: