2016-08-11 02:39:53 +03:00
|
|
|
<!--
|
2016-08-12 03:47:27 +03:00
|
|
|
Frequently Asked Questions: https://github.com/epoberezkin/ajv/blob/master/FAQ.md
|
2016-08-12 03:49:35 +03:00
|
|
|
Please provide all info and reduce your schema and data to the smallest possible size.
|
2016-08-11 02:39:53 +03:00
|
|
|
|
2016-08-12 02:00:09 +03:00
|
|
|
This template is for bug reports. For other issues please use:
|
2016-08-12 03:44:26 +03:00
|
|
|
- a new feature/improvement: http://epoberezkin.github.io/ajv/contribute.html#changes
|
2016-10-21 00:19:52 +03:00
|
|
|
- browser/compatibility issues: http://epoberezkin.github.io/ajv/contribute.html#compatibility
|
2016-08-12 03:44:26 +03:00
|
|
|
- JSON-Schema standard: http://epoberezkin.github.io/ajv/contribute.html#json-schema
|
2016-08-15 02:32:48 +03:00
|
|
|
- Ajv usage questions: https://gitter.im/ajv-validator/ajv
|
2016-08-11 02:39:53 +03:00
|
|
|
-->
|
|
|
|
|
|
|
|
**What version of Ajv are you using? Does the issue happen if you use the latest version?**
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-21 23:17:39 +03:00
|
|
|
**Ajv options object**
|
|
|
|
|
|
|
|
<!-- See https://github.com/epoberezkin/ajv#options -->
|
2016-08-11 02:39:53 +03:00
|
|
|
|
|
|
|
```javascript
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-04-21 23:17:39 +03:00
|
|
|
**JSON Schema**
|
|
|
|
|
|
|
|
<!-- Please make it as small as possible to reproduce the issue -->
|
2016-08-11 02:39:53 +03:00
|
|
|
|
|
|
|
```json
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-04-21 23:17:39 +03:00
|
|
|
**Sample data**
|
|
|
|
|
|
|
|
<!-- Please make it as small as posssible to reproduce the issue -->
|
2016-08-11 02:39:53 +03:00
|
|
|
|
|
|
|
```json
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-04-21 23:17:39 +03:00
|
|
|
**Your code**
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Please:
|
|
|
|
- make it as small as posssible to reproduce the issue
|
|
|
|
- use one of the usage patterns from https://github.com/epoberezkin/ajv#getting-started
|
|
|
|
- use `options`, `schema` and `data` as variables, do not repeat their values here
|
|
|
|
- post a working code sample in RunKit notebook cloned from https://runkit.com/esp/ajv-issue and include the link here.
|
|
|
|
|
|
|
|
It would make understanding your problem easier and the issue more useful to others.
|
|
|
|
Thank you!
|
|
|
|
-->
|
2016-08-11 02:39:53 +03:00
|
|
|
|
|
|
|
```javascript
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-04-21 23:17:39 +03:00
|
|
|
**Validation result, data AFTER validation, error messages**
|
2016-08-11 02:39:53 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
**What results did you expect?**
|
2016-08-11 02:59:09 +03:00
|
|
|
|
|
|
|
|
2016-08-15 02:32:48 +03:00
|
|
|
**Are you going to resolve the issue?**
|