When running with drf-spectacular to generate OpenAPI schemas, the field type cannot be auto-inferred and the following error pops up in the logs when accessing Redoc or Swagger schema:
Error [IssueViewSet]: could not resolve model field "epics.Issue.sqid". Failed to resolve through serializer_field_mapping, get_internal_type(), or any override mechanism. Defaulting to "string"
It still works because it defaults to a string but I think that all that's required to get clean logs is add this method to the SquidsField class:
When running with drf-spectacular to generate OpenAPI schemas, the field type cannot be auto-inferred and the following error pops up in the logs when accessing Redoc or Swagger schema:
It still works because it defaults to a string but I think that all that's required to get clean logs is add this method to the
SquidsField
class:Will test and submit a PR momentarily.