ソースを参照

12151 remove choice field str mapping for OpenAPI

Arthur 2 年 前
コミット
56d2a9aa11
1 ファイル変更0 行追加1 行削除
  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):
 class ChoiceField(serializers.Field):
     """
     """
     Represent a ChoiceField as {'value': <DB value>, 'label': <string>}. Accepts a single value on write.
     Represent a ChoiceField as {'value': <DB value>, 'label': <string>}. Accepts a single value on write.