react-validation-mixin v5.2.0 Release Notes
Release Date: 2015-09-24 // over 8 years ago-
๐ With this release there was a major overhaul to the underlying validation framework to support nested object validation.
๐ This release is dependent on joi-validation-strategy v0.2.1
๐ Nested object validation support
validatorTypes: { auth: { firstName: Joi.string().required().label('First Name'), }, }...render: function() { return ( \<section className='row'\>\<h3\>Signup\</h3\>\<form onSubmit={this.handleSubmit} className='form-horizontal'\>\<fieldset\>\<div className={this.getClasses('auth.firstName')}\>\<label htmlFor='firstName'\>First Name\</label\>\<input type='text' id='firstName' ref='firstName' value={this.state.auth.firstName} onChange={this.onChange('auth.firstName')} onBlur={this.props.handleValidation('auth.firstName')} className='form-control' placeholder='First Name' /\> {this.renderHelpText(this.props.getValidationMessages('auth.firstName'))} \</div\>...
๐ฅ Breaking Changes
A breaking change has been introduced with the
this.props.getValidationMessages()
api. It now no longer always returns an array, but instead depends on the datatype you are validating and the strategy implementation. Documentation is currently being updated to reflect these changes.