Explorar o código

12151 remove choice field str mapping for OpenAPI

Arthur %!s(int64=3) %!d(string=hai) anos
pai
achega
56d2a9aa11
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      netbox/netbox/api/fields.py

+ 0 - 1
netbox/netbox/api/fields.py

@@ -14,7 +14,6 @@ __all__ = (
 )
 
 
-@extend_schema_field(OpenApiTypes.STR)
 class ChoiceField(serializers.Field):
     """
     Represent a ChoiceField as {'value': <DB value>, 'label': <string>}. Accepts a single value on write.