swagger-parser
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -39,2 +39,6 @@ 'use strict'; | ||
if (!_.isString(swaggerPath)) { | ||
throw new Error('No Swagger file path was specified'); | ||
} | ||
if (!_.isFunction(callback)) { | ||
@@ -41,0 +45,0 @@ throw new Error('A callback function must be provided'); |
{ | ||
"name": "swagger-parser", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Swagger JSON/YAML parser and validator for Node and browsers", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -17,9 +17,9 @@ Swagger-Parser | ||
-------------------------- | ||
* Supports Swagger specs in __JSON or YAML__ format | ||
* Parses Swagger specs in __JSON or YAML__ format | ||
* __Validates__ against the [official Swagger 2.0 schema](http://github.com/reverb/swagger-spec/blob/master/versions/2.0.md) | ||
* Dereferences all __$ref__ pointers, including pointers to __external files and URLs__ | ||
* Asynchronously downloads and __caches__ external files and URLs | ||
* __Tested__ in Node.js and all major web browsers on Windows, Mac, and Linux | ||
* Asynchronously downloads and __caches__ external files and URLs | ||
* Nested $ref pointers are supported, even in external files and URLs | ||
* Multiple $ref pointers to the same definition are resolved to the same object instance, thus maintaining [strict reference equality](https://github.com/BigstickCarpet/swagger-parser/blob/e1867cd9b14666a726264ba45641f2e4761edf61/tests/specs/dereference-spec.js#L127) | ||
* Supports nested $ref pointers, even in external files and URLs | ||
* Multiple $ref pointers to the same definition are resolved to the same object instance, thus maintaining [strict reference equality](https://github.com/BigstickCarpet/swagger-parser/blob/a525d5e6f3a2af1774d0bcc283cb59737f02bb1e/tests/specs/dereference-spec.js#L137) | ||
@@ -121,3 +121,3 @@ | ||
* __Recursive (circular) $ref pointers__ - Recursive (circular) `$ref` pointers are __not__ currently supported. So something like this won't work: | ||
* __Circular $ref pointers__ - Circular `$ref` pointers are a bit of an edge case, but it would be nice to support them anyway. Currently, something like this won't work: | ||
@@ -131,3 +131,3 @@ ````yaml | ||
type: | ||
$ref: person | ||
$ref: person # circular reference | ||
```` | ||
@@ -134,0 +134,0 @@ |
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
3037632
24557