| 1 |
--- |
| 2 |
name: Bug or error report |
| 3 |
about: Please use for issues related to incorrect validation behaviour |
| 4 |
title: "" |
| 5 |
labels: "bug report" |
| 6 |
assignees: "" |
| 7 |
--- |
| 8 |
|
| 9 |
<!-- |
| 10 |
Frequently Asked Questions: https://ajv.js.org/faq.html |
| 11 |
Please provide all info and reduce your schema and data to the smallest possible size. |
| 12 |
|
| 13 |
This template is for bug or error reports. |
| 14 |
For other issues please see https://ajv.js.org/contributing/ |
| 15 |
--> |
| 16 |
|
| 17 |
**What version of Ajv are you using? Does the issue happen if you use the latest version?** |
| 18 |
|
| 19 |
**Ajv options object** |
| 20 |
|
| 21 |
<!-- See https://ajv.js.org/options.html --> |
| 22 |
|
| 23 |
```javascript |
| 24 |
|
| 25 |
``` |
| 26 |
|
| 27 |
**JSON Schema** |
| 28 |
|
| 29 |
<!-- Please make it as small as possible to reproduce the issue --> |
| 30 |
|
| 31 |
```json |
| 32 |
|
| 33 |
``` |
| 34 |
|
| 35 |
**Sample data** |
| 36 |
|
| 37 |
<!-- Please make it as small as possible to reproduce the issue --> |
| 38 |
|
| 39 |
```json |
| 40 |
|
| 41 |
``` |
| 42 |
|
| 43 |
**Your code** |
| 44 |
|
| 45 |
<!-- |
| 46 |
Please: |
| 47 |
- make it as small as possible to reproduce the issue |
| 48 |
- use one of the usage patterns from https://ajv.js.org/guide/getting-started.html |
| 49 |
- use `options`, `schema` and `data` as variables, do not repeat their values here |
| 50 |
- post a working code sample in RunKit notebook cloned from https://runkit.com/esp/ajv-issue and include the link here. |
| 51 |
|
| 52 |
It would make understanding your problem easier and the issue more useful to others. |
| 53 |
Thank you! |
| 54 |
--> |
| 55 |
|
| 56 |
```javascript |
| 57 |
|
| 58 |
``` |
| 59 |
|
| 60 |
**Validation result, data AFTER validation, error messages** |
| 61 |
|
| 62 |
``` |
| 63 |
|
| 64 |
``` |
| 65 |
|
| 66 |
**What results did you expect?** |
| 67 |
|
| 68 |
**Are you going to resolve the issue?** |