Skip to content

1.1.0

Latest
Compare
Choose a tag to compare
@dxstiny dxstiny released this 15 Aug 13:24

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 and null 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