Skip to content

Commit

Permalink
Add IP fields to DEFAULT_FIELD_MAPPING.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjproud committed Mar 14, 2024
1 parent 2855263 commit 8522513
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apispec/ext/marshmallow/field_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
marshmallow.fields.Field: (None, None),
marshmallow.fields.Raw: (None, None),
marshmallow.fields.List: ("array", None),
marshmallow.fields.IP: ("string", "ip"),
marshmallow.fields.IPv4: ("string", "ipv4"),
marshmallow.fields.IPv6: ("string", "ipv6"),
}


Expand Down

0 comments on commit 8522513

Please sign in to comment.