Skip to content

Commit

Permalink
docs: fix oneOfType description (all -> any)
Browse files Browse the repository at this point in the history
  • Loading branch information
roblan committed Oct 1, 2020
1 parent cfd94c8 commit 35c7eac
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ results.then((errors) => {
| Number | Simple Number type |
| Object | Simple Object type this type give you posibility to black box |
| Boolean | Simple Boolean type |
| Date | This type check value is instance of Date |
| Array | This type check value is array of any value |
| new Schema | This type check value is instance of Schema and validate value by this schema |
| Schema.oneOfType([type1, type2, ...]) | This type give you posibility check one of types it will return error if value don't match all types |
| Date | This type checks if value is instance of Date |
| Array | This type checks if value is array of any value |
| new Schema | This type checks if value is instance of Schema and validate value by this schema |
| Schema.oneOfType([type1, type2, ...]) | This type checks if value matches any of given types |
| Schema.optionalType(type) | This type will pass validation if value is null or undefined when field is not required |
| SchemaType | You can register new schema type that has name, validator, validator when field is required (requiredValidator) and getDefaultValue |
| [OneOfTypesAbove] | This type check value is array of type |
| [OneOfTypesAbove] | This type checks if value is array of given type |

### Custom validator attributes

Expand Down Expand Up @@ -401,4 +401,3 @@ const errors = schema.validate(modelObject);
console.log(Object.keys(errors).length > 0); // false

```

0 comments on commit 35c7eac

Please sign in to comment.