Serpyco-rs

Latest version: v1.7.1

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

Scan your dependencies

Page 1 of 7

1.7.1

Bug Fix

**Added Missing 'description' Field**: A missing 'description' field in the JSON schema for boolean fields has been added.

**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.7.0...v1.7.1

1.7.0

Updates:

**Added JsonSchemaBuilder**: We've introduced a new JsonSchemaBuilder feature, allowing users to customize the generated JSON schemas according to their specific requirements.

**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.6.1...v1.7.0

1.6.1

Updates:

**Discard microseconds when deserializing time/date**: Python's datetime module, does not support microseconds in time/date objects. Now when parsing time/date strings containing microseconds, any extra microseconds beyond the standard precision are discarded.


**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.6.0...v1.6.1

1.6.0

New Features

**Added Flag for Serializer**: We've introduced a new flag for the serializer called `naive_datetime_to_utc`. When enabled, this flag ensures that naive datetimes are converted to UTC time zone during serialization. This feature provides greater control over datetime handling and helps maintain consistency in data representation.

Performance Improvements

**Accelerated Serialization of Date/Time/Datetime Types**: In this release, we've significantly accelerated the serialization process for date, time, and datetime types. The serialization speed for these types has been improved by approximately 2 times, resulting in faster data processing and improved efficiency.

---

**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.5.0...v1.6.0

1.5.0

Bug Fixes:

**Fixed Error with `force_default_for_optional`**: We have addressed an issue where using `force_default_for_optional` caused errors. This fix ensures that the functionality works as intended without any unexpected errors.

Enhancements:

**Improved Error Messages for Dataclass Fields**: Error messages for dataclass fields have been enhanced in this release. Now, the instance_path will include the full path to the field, providing more detailed information for easier debugging and troubleshooting.

**Enhanced Resolution of Generics**: We have improved the resolution of generics for complex inheritance hierarchies. This enhancement ensures better compatibility and accuracy when working with complex class structures and generic types.

---

**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.4.0...v1.5.0

1.4.0

New Feature:

**Support Optional Union Type**: In this release, we have added support for optional union types. You can now specify optional union types using the syntax `Type1 | Type2 | None`. For example, `Foo | list[Foo] | None` indicates that the value can be either a `Foo`, a list of `Foo`, or `None`.


**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.3.0...v1.4.0

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.