2019-01-03 02:24:44 +03:00
|
|
|
---
|
|
|
|
name: Bug or error report
|
2019-01-03 02:40:41 +03:00
|
|
|
about: Please use for issues related to incorrect validation behaviour
|
2019-01-03 02:24:44 +03:00
|
|
|
title: ''
|
2019-07-06 21:55:10 +03:00
|
|
|
labels: 'bug report'
|
2019-01-03 02:24:44 +03:00
|
|
|
assignees: ''
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2019-01-03 02:40:41 +03:00
|
|
|
<!--
|
|
|
|
Frequently Asked Questions: https://github.com/epoberezkin/ajv/blob/master/FAQ.md
|
|
|
|
Please provide all info and reduce your schema and data to the smallest possible size.
|
|
|
|
|
|
|
|
This template is for bug or error reports.
|
|
|
|
For other issues please see https://github.com/epoberezkin/ajv/blob/master/CONTRIBUTING.md
|
|
|
|
-->
|
|
|
|
|
2019-01-03 02:24:44 +03:00
|
|
|
**What version of Ajv are you using? Does the issue happen if you use the latest version?**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Ajv options object**
|
|
|
|
|
|
|
|
<!-- See https://github.com/epoberezkin/ajv#options -->
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**JSON Schema**
|
|
|
|
|
|
|
|
<!-- Please make it as small as possible to reproduce the issue -->
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**Sample data**
|
|
|
|
|
|
|
|
<!-- Please make it as small as posssible to reproduce the issue -->
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**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!
|
|
|
|
-->
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**Validation result, data AFTER validation, error messages**
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
**What results did you expect?**
|
|
|
|
|
|
|
|
|
|
|
|
**Are you going to resolve the issue?**
|