Skip to content

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

@AntoninRousset

Description

@AntoninRousset

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions