Pyaddict

Latest version: v1.1.0

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

Scan your dependencies

Page 1 of 2

1.1.0

What's New
- schema
- You can now set constant/static values as the value in objects:
py
Object({
"staticValue": 5,
"dynamicValue": Integer()
})

- optional() now includes a flag to explicitly disallow `null`. By default, a missing key _and_ `null` are accepted.
py
Object({
"nullable": Integer().optional(), None and missing key allowed
"missingOrValid": Integer().optional(nullable = False) key can be missing but None is not allowed
})


Bug Fixes
- schema
- nullable objects caused a runtime exception

1.0.5

Schema Validation:
* FIX: enum with multiple values raised exception

1.0.4

Schema Validation:
* oneOf (7)

1.0.3

* Schema Validation
* fixed some issues with the regex validation
* added schema.expect()

1.0.2

* Schema Validation:
* String.url() (a default regex)

**Full Changelog**: https://github.com/dxstiny/pyaddict/compare/1.0.1...1.0.2

1.0.1

- Schema Validation:
- typing failed when working with min/max/enum
- inclusive min/max didn't work
- **Breaking** by default, additional properties are **disallowed**
- updated docs

**Full Changelog**: https://github.com/dxstiny/pyaddict/compare/1.0.0...1.0.1

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.