- #112 Use joi.link to only resolve strictly recursive self-references
- #100 Allow extension constructors
- #101 Keep string enum type
- #104 Allow allOf, anyOf, oneOf to be combined with base schema
- #107 Cycles in schema refs (fixed #106)
- #108 Handle
not
properly - #109 Defaults options
- [BREAKING] Switched from @hapi/joi to joi (#94)
- Added refineSchema function (#92)
- [BREAKING] Updated to Joi@17
- [BREAKING] Custom types moved to being defined under
extensions
- [BREAKING] Extensions definitions to follow Joi@17
- Correct usage of joi
validate
function. joiSchema.validate(obj) instead of Joi.validate(obj, joiSchema).
- #83 differentiate between undefined and falsy
- #73 updated fix
- Do not set empty string as valid for all string types (#73)
- Updated joi and hoek to latest, drop Node 6 support (#76)
- #69
- #66
- [BREAKING] Addresses #63 : date format to follow RFC3339 as per JSON-Schema.
- Fixes
oneOf
requiring (#61).
- Added support for string formats
uuid
(v4) andguid
.
- [BREAKING] export interface changed. Call
Enjoi.schema
instead ofEnjoi
. - [BREAKING]
joi
is a peer. - Added
extensions
support. types
can also contain function values to do complex resolving of custom types.- Added support for
Enjoi.defaults
which returns a new Enjoi with default options.
- Fixed allOf support (#53)
- Support for allOf
- Bug fixes
- Security fix to resolve https://nodesecurity.io/advisories/566
- Documentation fixes.
- Support array:additionalItems false setting.
- Added
strictMode
support and resolves #34.
- Added a refineType function option.
- [BREAKING] supports Joi 13.x (required Node 6+)
- Fixed additional properties #31
- Adds support for ordered and items #38
- Fixes mutating
options
to addstripUnknown
.
- Fix #25 by supporting array for type (e.g. ['string', 'null']).
- Additional formats: hostname, uri, ipv4, ipv6.
- Added @jsdevel's additionalProperties (#14) fixes (thanks!)
- Add default value (#30).
- Added support for directly passing a
string
instead of a schema to indicate type.
- added support for mapping title (to label in joi).
- added support for mapping description.
- fixed engine version.
- updated
joi
to ^9. - requires node 4 minimum.
- when undefined
minLength
should default to 0.
- Validate when
additionalProperties
is boolean.
- Support for
oneOf
.
- Support for
format
in string types.
- [BREAKING]
subSchemas
is now passed as a property inoptions
. - Support for custom types using
options.types
.