Marshmallow-dataclass

Latest version: v8.7.1

Safety actively analyzes 688735 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 7

7.0.0

- Methods are not copied from the dataclass to the generated Schema anymore. (See [47](https://github.com/lovasoa/marshmallow_dataclass/issues/47)).
This breaks backward compatibility, but hopefully should not impact anyone since marshmallow-specific methods are still copied.
This does not work anymore:
py
from marshmallow_dataclass import dataclass

dataclass
class C:
def say_hello():
print("hello")

C.Schema.say_hello()


But this still works as expected:
py
from marshmallow_dataclass import dataclass
from marshmallow import validates, ValidationError

dataclass
class C:
name: str
validates('name')
def validates(self, value):
if len(name) > 10: raise ValidationError("name too long")

6.1.0

- [custom base schema](https://github.com/lovasoa/marshmallow_dataclass#customizing-the-base-schema)
- [NewType declarations](https://github.com/lovasoa/marshmallow_dataclass#custom-newtype-declarations)

6.0.0

- Dropped compatibility with marshmallow 2.

0.6.6

- Added support for the `Any` type

Page 7 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.