swagger-parser
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -82,3 +82,3 @@ 'use strict'; | ||
// We're done. Invoke the callback. | ||
util.doCallback(callback, null, swaggerObject); | ||
util.doCallback(callback, null, swaggerObject, state); | ||
}); | ||
@@ -85,0 +85,0 @@ }); |
@@ -66,2 +66,3 @@ 'use strict'; | ||
try { | ||
state.files.push(filePath); | ||
callback(null, parseJsonOrYaml(filePath, data, state)); | ||
@@ -140,2 +141,3 @@ } | ||
try { | ||
state.urls.push(urlPath); | ||
callback(null, parseJsonOrYaml(href, body, state)); | ||
@@ -142,0 +144,0 @@ } |
@@ -29,2 +29,14 @@ 'use strict'; | ||
/** | ||
* The full path and filename of files that have been read during the parsing operation. | ||
* @type {string[]} | ||
*/ | ||
this.files = []; | ||
/** | ||
* The parsed URLs that have been downloaded during the parsing operation. | ||
* @type {url.Url[]} | ||
*/ | ||
this.urls = []; | ||
/** | ||
* A map of resolved "$ref" pointers to their values | ||
@@ -31,0 +43,0 @@ */ |
{ | ||
"name": "swagger-parser", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Parses a JSON or YAML Swagger spec, validates it against the Swagger schema, and dereferences all $ref pointers", | ||
@@ -11,2 +11,3 @@ "keywords": [ | ||
"schema", | ||
"parse", | ||
"validate", | ||
@@ -26,3 +27,5 @@ "validation", | ||
"build": "gulp build", | ||
"test": "istanbul cover _mocha -- --recursive tests && karma start --single-run" | ||
"test": "istanbul cover _mocha -- --recursive tests && karma start --single-run", | ||
"mocha": "mocha --recursive tests", | ||
"karma": "karma start --single-run" | ||
}, | ||
@@ -29,0 +32,0 @@ "repository": { |
@@ -5,3 +5,3 @@ Swagger-Parser | ||
[![Build Status](https://travis-ci.org/BigstickCarpet/swagger-parser.svg?branch=master)](https://travis-ci.org/BigstickCarpet/swagger-parser) | ||
[![Build Status](https://img.shields.io/travis/BigstickCarpet/swagger-parser.svg)](https://travis-ci.org/BigstickCarpet/swagger-parser) | ||
[![Dependencies](https://david-dm.org/bigstickcarpet/swagger-parser.svg)](https://david-dm.org/bigstickcarpet/swagger-parser) | ||
@@ -8,0 +8,0 @@ [![Code Climate Score](https://codeclimate.com/github/BigstickCarpet/swagger-parser/badges/gpa.svg)](https://codeclimate.com/github/BigstickCarpet/swagger-parser) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2954164
23741