open-index/open-npm huggingface dataset:
npm package: @jkmadison/joi-validation-strategy
Description: Joi validation strategy for react-validation-mixin updated to joi 17
Author: jurassix
Latest version: 0.1.1

# joi-validation-strategy
Joi validation strategy for [react-validation-mixin](https://github.com/jurassix/react-validation-mixin).

This library provides a strategy implementation to be used by _react-validation-mixin_.

Simply define the validation schema using Joi validators, and the mixin will give you access to each fields validity and error messages.
npm package: @jkmadison/react-validation-mixin
Description: Simple Validation Mixin for React.
Author: jurassix
Latest version: 5.4.1

# react-validation-mixin
_Simple validation library for React._

This library simply wraps your React Component, transferring it props containing the boilerplate to validate a React form.

**react-validation-mixin** aims to provide a low-level toolkit for _React.Component_ validation, relying on existing validation libraries.

This library currently supports at least two strategies and the community is urged to expand the available strategies. Each strategy is responsible for the data validation and error message responses. A complete list of strategies can be found at [the end of this page](#strategies).

Users of the library are required to install and include the mixin and a chosen strategy.

---

### [View the Demo](http://jurassix.github.io/react-validation-mixin/)

### [Read the Documentation](http://jurassix.gitbooks.io/docs-react-validation-mixin/content/overview/index.html)

### [Steps for migrating from 4.x](http://jurassix.gitbooks.io/docs-react-validation-mixin/content/overview/migration-to-5.html)

---

### Install

Install **mixin** via npm OR yarn:

```javascript
> npm install --save react-validation-mixin
```
```javascript
> yarn add react-validation-mixin
```
Install **validation strategy** via npm OR yarn:

```javascript
> npm install --save joi-validation-strategy
```
```javascript
> yarn add joi-validation-strategy
```
Make sure you install the peer dependency [Joi](https://github.com/hapijs/joi) if using the _joi-validation-strategy_:

```javascript
> npm install --save joi
```
```javascript
> yarn add joi
```
### Strategies

Current list of validation strategy implementations to choose from:

* [joi-validation-strategy](https://github.com/jurassix/joi-validation-strategy) - based on [Joi](https://github.com/hapijs/joi)
* [json-schema-validation-strategy](https://github.com/jefersondaniel/json-schema-validation-strategy) - based on [jsen]
(https://github.com/bugventure/jsen)
* [react-validatorjs-strategy](https://github.com/TheChech/react-validatorjs-strategy) - based on [validatorjs](https://github.com/skaterdav85/validatorjs)


---

### _Please contribute suggestions, features, issues, and pull requests._