Skip to content

v3 - Enums and no empty arrays

Latest
Compare
Choose a tag to compare
@JakeSidSmith JakeSidSmith released this 29 Sep 16:07
419fb9c

Includes #31 and #32

  • Add requiredEnum, optionalEnum, requiredEnumArray, and optionalEnumArray
  • Add ignoreInvalidEnum deconstruct option

Breaking changes:

  • Rename allowSubPaths to ignoreSubPaths
  • For optional arrays undefined is returned instead of an empty array if there are no values
  • For required arrays an error is throw if there are no values