Skip to content

Optional validation does not work anymore #48

@ghost

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

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