github Effect-TS/schema v0.50.0

latest releases: v0.56.1, v0.56.0, v0.55.0...
11 months ago

Minor Changes

  • #593 cbc2e3f Thanks @gcanti! - ParseResult: merge failure APIs into fail

  • #607 e85aefb Thanks @gcanti! - Bug Fix: align index signature behaviour to TypeScript

  • #589 3b99569 Thanks @gcanti! - - remove ValidDate (which is just an alias of Date)

    • add DateFromString (decodes from string, output: possibly invalid Date)
  • #593 cbc2e3f Thanks @gcanti! - ParseResult: rename success to succeed (standard naming)

Patch Changes

  • #597 caeed29 Thanks @jessekelly881! - added BigDecimal

  • #585 5b27f03 Thanks @gcanti! - improve JSON Schema output:

    • rename dependencies to $defs
    • remove "type" from const schemas
    • use "oneOf" for enums and add "title"s
    • add support for record(pattern, number)
    • add "$id" and "$comment" properties
    • literals should be converted to enum instead of anyOf, closes #579
  • #603 8e21d7e Thanks @gcanti! - TreeFormatter: enhance formatActual for data types with a custom toString implementation, closes #600

Don't miss a new schema release

NewReleases is sending notifications on new releases.