Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI schema generation fails if the GeometryField is not in the model #264

Open
AntoninRousset opened this issue Dec 6, 2021 · 1 comment

Comments

@AntoninRousset
Copy link

This piece of code will cause the schema generation to fail if the GeometryField is not in the model, e.g. it is an annotation or a custom property.

I don't see any simple solution (without custom get_field), beside having multiple serializer fields: PointField, LineStringField, etc.)

@auvipy
Copy link
Collaborator

auvipy commented Dec 11, 2021

@dhaval-mehta what do you think on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants