allowUndefined method

ObjectSchema allowUndefined (bool value)

Sets flag to allow undefined properties

This method returns reference to this exception to implement Builder pattern to chain additional calls.

  • value true to allow undefined properties and false to disallow. Returns this validation schema.