You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a model Project containing an ArrayField zip_file_urls, this field is imported from django.contrib.postgres.fields.
Then I defined my ProjectSchema as the following:
When I try to access the docs to try the endpoint it throws a KeyError: ArrayField. My workaround was to remove the zip_file_urls from the model fields, and define a field on the schema zip_file_urls: list[HttpUrl].
Is there something that I am missing that can help me add the field to model_fields normally?
The text was updated successfully, but these errors were encountered:
I have a model
Project
containing an ArrayField zip_file_urls, this field is imported fromdjango.contrib.postgres.fields
.Then I defined my
ProjectSchema
as the following:Then I use this schema to validate the following endpoint:
When I try to access the docs to try the endpoint it throws a
KeyError: ArrayField
. My workaround was to remove thezip_file_urls
from the model fields, and define a field on the schemazip_file_urls: list[HttpUrl]
.Is there something that I am missing that can help me add the field to model_fields normally?
The text was updated successfully, but these errors were encountered: