Skip to content

Commit 8522513

Browse files
committed
Add IP fields to DEFAULT_FIELD_MAPPING.
1 parent 2855263 commit 8522513

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/apispec/ext/marshmallow/field_converter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
marshmallow.fields.Field: (None, None),
3939
marshmallow.fields.Raw: (None, None),
4040
marshmallow.fields.List: ("array", None),
41+
marshmallow.fields.IP: ("string", "ip"),
42+
marshmallow.fields.IPv4: ("string", "ipv4"),
43+
marshmallow.fields.IPv6: ("string", "ipv6"),
4144
}
4245

4346

0 commit comments

Comments
 (0)