-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Warning on schema generation for IPAddressField #12278
Labels
beta
Concerns a bug/feature in a beta release
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
type: housekeeping
Changes to the application which do not directly impact the end user
Comments
arthanson
added
type: housekeeping
Changes to the application which do not directly impact the end user
beta
Concerns a bug/feature in a beta release
labels
Apr 17, 2023
arthanson
added
the
type: bug
A confirmed report of unexpected behavior in the application
label
Apr 18, 2023
arthanson
added a commit
that referenced
this issue
Apr 18, 2023
arthanson
added a commit
that referenced
this issue
Apr 18, 2023
arthanson
added a commit
that referenced
this issue
Apr 18, 2023
arthanson
added a commit
that referenced
this issue
Apr 18, 2023
…alidation error if incorrect format
arthanson
added a commit
that referenced
this issue
Apr 18, 2023
arthanson
added a commit
that referenced
this issue
Apr 20, 2023
arthanson
added
the
status: accepted
This issue has been accepted for implementation
label
Apr 21, 2023
jeremystretch
pushed a commit
that referenced
this issue
Apr 21, 2023
…12285) * #12278 add serializer for ipaddressfield to remove spectacular warnings * #12278 add ipaddressfieldserializer to nested serializers * #12278 fix to_internal_value to_representation in serializer * #12278 to_internal_value is called before validation! need to raise validation error if incorrect format * #12278 to_internal_value needs to return value doh * #12278 move IPAddressField to field_serializers * #12278 remove old import * 12278 remove validator
jeremystretch
added a commit
that referenced
this issue
Apr 25, 2023
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
beta
Concerns a bug/feature in a beta release
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
type: housekeeping
Changes to the application which do not directly impact the end user
Proposed Changes
Should silence warning for IPAddressField on drf-spectacular openAPI 3.
Generate schema using, e.g.
Warning [IPRangeViewSet > IPRangeSerializer]: model field "IPAddressField" has no mapping in ModelSerializer. It may be a deprecated field. Defaulting to "string"
Justification
There should be no warnings produced by default if possible.
The text was updated successfully, but these errors were encountered: