Skip to content

#errors throws a false positive on optional fields  #41

@bcherny

Description

@bcherny
let mySchema = schema({
  '?foo': String
})

mySchema.errors({})
//=> {
// foo: ["undefined is not String"]
// }

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