Skip to content

Optional validation does not work anymore #48

Description

The following schema

schema({
  a: [Function, String],
  b: String,
  c: Array.of(3, String),
  d: Array.of(3, String),
  e: [null, schema.self]
})

will never pass on object without the e field.

The issue it is on the latest, not the 0.6.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions