Pydantic-enhanced-serializer

Latest version: v2.1.1

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

Scan your dependencies

Page 1 of 2

2.1.1

-------------

Released 2024-01-14

- Fix index exception in expansions when expanded data is a dict with a nested list of dicts.

2.1.0

-------------

Released 2023-12-01

- Fix how the json schema generator handles references to request, response and expansion
objects, and especially references to objects nested inside them. Make sure such references
are propagated correctly.

2.0.0

-------------

Released 2023-11-27

BREAKING CHANGES

- Converted to Pydantic 2.x
- New Configuration method: No longer uses `class Config:` as that was removed in pydantic 2


from typing import ClassVar
from pydantic_enhanced_serializer import FieldsetConfig

class SomeModel(BaseModel):
some_field: str

model_config = ConfigDict(...) new form of class Config

fieldset_config: ClassVar = FieldsetConfig(
fieldsets={ ... as before ... }


- New Augmented JSON Schema calling convention:


from pydantic_enhanced_serializer import FieldsetGenerateJsonSchema

schema = SomeModel.model_json_schema(schema_generator=FieldsetGenerateJsonSchema)


- Removed `augment_schema_with_fieldsets`, replaced with new `model_json_schema` usage.

1.1.5

-------------

Released 2023-10-01

- Fix bug where dicts nested inside the same model schema but with different individual key sets
were interfering with each other and causing some dicts to not return all (often any) of their keys.

1.1.4

-------------

Released 2023-07-08

- Fix case of nested array expansions with added fields overwritting each others attributes.

1.1.3

-------------

Released 2023-06-22

- Remove all export of unrelated "components", since nothing actually uses it. Callers will have
to manage extra/unknown referenced components themselves.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.