Updates:
-
271 Adds a new non-standard
Type.Date()
type. This type joins the existingType.UInt8Array()
as a promoted extended type used to represent core JavaScript primitives. It's inclusion was prompted by end user requirements to validate Date objects prior to writing them to Date supported API's and where serialization of the Date object is handled internally by the API. -
271 Redesign of Extended Type representations. Extended types been updated to provide external validators (such as Ajv) additional standard proporties to use when defining the custom schema. These properties are
instanceOf
(used for validating a classobject
instances), andtypeOf
(when validatingvalue
types). Information on configuring AJV for these properties can be found in the AJV section of the TypeBox readme.