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