OpenAPI schema generation outputs incorrect type=float #9168
Unanswered
tomdtp
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have raised this as an issue at django-rest-framework-gis already, but I am not sure if this might actually be an issue of DRF itself.
I am using the default way from the documentation to auto-generate an OpenAPI schema from my DRF endpoints:
However when analyzing the resulting output, it contains an incorrect
type: float
which is not supported in the OpenAPI spec. It should betype: number
withformat: float
, right?I encountered this when using it with drf-gis and especially the BBOX filter there:
Since DRF does the schema generation, I would assume this is an DRF issue?
Beta Was this translation helpful? Give feedback.
All reactions