- deprecates
attrs
- no longer deprecating
decodeArray
due to usage frequency
- new way to extend type to a class:
Model
- deprecates the old way
extend
- supports
enumSchema
- supports registering with
CasterBuilder
- renames
Builder
toClassBuilder
- supports union types
- supports null type
So we can express the type string | null
- export
Int
branded type
- supports
GenericType
- deprecates
decodeArray
- unifies to single API
decode(type: string | GenericType, ...)
- supports
Builder
to convert the outcome with a constructor
- supports
attrs
mount point for custom values
- export test compiler
- integrate common types
- Date
- Latitude
- Longitude
- NonEmptyString
- add
casters
to constructor
- integrate with
requestAndCast<T>(args)
macro
- decode() decodeArray() now return
T | undefined
and accepts optionalErrorHandler
- build io-ts codec solution from runtime.Schema, i.e. metadata of (subset of) native TypeScript interface
- supports
- primitive types (number, string, boolean)
- interfaces & classes
- literal types
- array types
- optional fields
- NOT supporting
- generic types (not sure if we really need this)
- union types (for JSON schema is better to not have that flexibility)