docs: fix site
parent
b42f6c5ee1
commit
a1dc7df458
|
@ -175,6 +175,7 @@ console.log(validate(3)); // false
|
||||||
Example `range` keyword defined using [doT template](https://github.com/olado/doT):
|
Example `range` keyword defined using [doT template](https://github.com/olado/doT):
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
// {% raw %}
|
||||||
var doT = require('dot');
|
var doT = require('dot');
|
||||||
var inlineRangeTemplate = doT.compile("\
|
var inlineRangeTemplate = doT.compile("\
|
||||||
{{ \
|
{{ \
|
||||||
|
@ -197,6 +198,7 @@ ajv.addKeyword('range', {
|
||||||
additionalItems: false
|
additionalItems: false
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// {% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
`'valid' + it.level` in the example above is the expected name of the variable that should be set to the validation result.
|
`'valid' + it.level` in the example above is the expected name of the variable that should be set to the validation result.
|
||||||
|
|
Loading…
Reference in New Issue