What's New
- schema
- You can now set constant/static values as the value in objects:
Object({
"staticValue": 5,
"dynamicValue": Integer()
})
- optional() now includes a flag to explicitly disallow
null
. By default, a missing key andnull
are accepted.
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