Merge branch 'master' into master

master
Simon Chan 2019-01-03 14:49:07 +08:00 committed by GitHub
commit 729f15c4b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 107 additions and 6 deletions

View File

@ -2,7 +2,7 @@
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 reports. For other issues please use:
This template is for bug or error reports. For other issues please use:
- a new feature/improvement: http://epoberezkin.github.io/ajv/contribute.html#changes
- browser/compatibility issues: http://epoberezkin.github.io/ajv/contribute.html#compatibility
- JSON-Schema standard: http://epoberezkin.github.io/ajv/contribute.html#json-schema

View File

@ -0,0 +1,81 @@
---
name: Bug or error report
about: Please use for issues related to incorrect validation behaviour
title: ''
labels: ''
assignees: ''
---
<!--
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
-->
**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?**

View File

@ -1,3 +1,12 @@
---
name: Feature or change proposal
about: For proposals of new features, options or some other improvements
title: ''
labels: 'enhancement'
assignees: ''
---
<!--
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.

View File

@ -1,3 +1,12 @@
---
name: Browser and compatibility issue
about: For issues that only happen in a specific environment
title: ''
labels: 'compatibility'
assignees: ''
---
<!--
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.
@ -8,12 +17,12 @@ For other issues please see https://github.com/epoberezkin/ajv/blob/master/CONTR
**The version of Ajv you are using**
**The environment you have the problem with.**
**The environment you have the problem with**
**Your code (please make it as small as possible to reproduce the issue).**
**Your code (please make it as small as possible to reproduce the issue)**
**If your issue is in the browser, please list the other packages loaded in the page in the order they are loaded. Please check if the issue gets resolved (or results change) if you move Ajv bundle closer to the top.**
**If your issue is in the browser, please list the other packages loaded in the page in the order they are loaded. Please check if the issue gets resolved (or results change) if you move Ajv bundle closer to the top**
**Results in node.js v4.**
**Results in node.js v8+**
**Results and error messages in your platform.**
**Results and error messages in your platform**

View File

@ -1,3 +1,5 @@
'use strict';
// do NOT remove this file - it would break pre-compiled schemas
// https://github.com/epoberezkin/ajv/issues/889
module.exports = require('fast-deep-equal');