File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -274,11 +274,11 @@ A `Validator` will always maintain a valid json schema representation of the typ
274
274
The underlying json schema can always be accessed with ` getSchema() ` .
275
275
###### Example:
276
276
``` typescript
277
- const stringValidator = new Validator <string >({ type: ' string' });
278
- const numberValidator = new Validator <number >({ type: ' number' });
279
- const strOrNum = new Validator <string | number >({ oneOf: [ { type: ' string' }, { type: ' number' } ]});
280
- const strOrNum2 = stringValidator .or (numberValidator );
281
- ```
277
+ const stringValidator = new Validator <string >({ type: ' string' });
278
+ const numberValidator = new Validator <number >({ type: ' number' });
279
+ const strOrNum = new Validator <string | number >({ oneOf: [ { type: ' string' }, { type: ' number' } ]});
280
+ const strOrNum2 = stringValidator .or (numberValidator );
281
+ ```
282
282
283
283
### Validator.and
284
284
Creates a new validator that is true whenever the data matches ` this ` _ and_ ` v ` .
You can’t perform that action at this time.
0 commit comments