fixed bug in remote ref resolution, closes #70

master
Evgeny Poberezkin 2015-11-07 13:25:01 +00:00
parent 73f48e676d
commit 368332ab42
6 changed files with 17 additions and 6 deletions

View File

@ -57,6 +57,6 @@ module.exports = function(config) {
// if true, Karma captures browsers, runs the tests and exits
singleRun: true,
browserNoActivityTimeout: 30000
browserNoActivityTimeout: 90000
});
};

View File

@ -126,7 +126,7 @@ module.exports = function(config) {
testName: 'Ajv'
},
captureTimeout: 600000,
browserNoActivityTimeout: 240000,
browserNoActivityTimeout: 300000,
customLaunchers: customLaunchers,

View File

@ -108,6 +108,7 @@ function getJsonPointer(parsedRef, baseId, schema, root) {
if (res) {
schema = res.schema;
root = res.root;
baseId = res.baseId;
}
}
}

View File

@ -1,6 +1,6 @@
{
"name": "ajv",
"version": "1.4.8",
"version": "1.4.9",
"description": "Another JSON Schema Validator",
"main": "lib/ajv.js",
"files": [

View File

@ -39,7 +39,6 @@
]
},
{
"skip": true,
"description": "local hash ref with remote hash ref that has inner hash ref (#70)",
"schema": {
"definitions": {

View File

@ -1,6 +1,5 @@
[
{
"skip": true,
"description": "Swagger api schema does not compile (#70)",
"schema": {
"title": "A JSON Schema for Swagger 2.0 API.",
@ -1595,8 +1594,20 @@
},
"tests": [
{
"description": "empty object is valid",
"description": "empty object is invalid",
"data": {},
"valid": false
},
{
"description": "minimal valid object",
"data": {
"swagger": "2.0",
"info": {
"title": "sample api definition",
"version": "0.1"
},
"paths": {}
},
"valid": true
}
]