Skip to content

v0.0.12

Choose a tag to compare

@laurence-myers laurence-myers released this 11 May 07:19
· 243 commits to master since this release

Features

  • #10: add @Lazy() decorator, for lazily evaluated schemas. This accepts a function that returns a Joi schema. If you want to use a schema class, you must pass the class to getJoiSchema().

Fixes

  • #11: @ObjectSchema() can now be applied to properties with a class instance type.
  • #16: @AnySchema() could only be applied to number properties! D'oh.
  • #28: @Concat() and @Empty() decorators were not correctly using the passed in schema.

Tech

  • Add yarn.lock file.
  • Update TypeScript to v3.4.5
  • #12: CircleCI tests are running again.