Closed uvsmtid closed 1 year ago
Enum support was added by marshmallow v3.18.0: https://github.com/marshmallow-code/marshmallow/commit/fa0ee03e82d2b73dc00bdeb75b266aba99be8d0b
Enum
marshmallow
EnumField from marshmallow-enum becomes unnecessary: https://github.com/justanr/marshmallow_enum/issues/51
EnumField
marshmallow-enum
In fact, native support is necessary to generate OAS spec from marshmallow specs using apispec. This line does not support EnumField from marshmallow-enum, it wants Enum from marshmallow: https://github.com/marshmallow-code/apispec/blob/bd0d12f7b932369f718d1b222a68f1ddff399953/src/apispec/ext/marshmallow/field_converter.py#L512
apispec
Suporting Enum makes all pieces work togeter.
Done via #227. Released, just now, in marshmallow-dataclass 8.5.11.
Enum
support was added bymarshmallow
v3.18.0: https://github.com/marshmallow-code/marshmallow/commit/fa0ee03e82d2b73dc00bdeb75b266aba99be8d0bEnumField
frommarshmallow-enum
becomes unnecessary: https://github.com/justanr/marshmallow_enum/issues/51In fact, native support is necessary to generate OAS spec from marshmallow specs using
apispec
. This line does not supportEnumField
frommarshmallow-enum
, it wantsEnum
frommarshmallow
: https://github.com/marshmallow-code/apispec/blob/bd0d12f7b932369f718d1b222a68f1ddff399953/src/apispec/ext/marshmallow/field_converter.py#L512Suporting
Enum
makes all pieces work togeter.