move to fixed SwaggerParser fork

This commit is contained in:
Roman Gotsiy 2015-11-04 22:18:34 +02:00
parent 9a036b40e6
commit 6af3ab74ed
3 changed files with 69 additions and 57 deletions

View File

@ -22,7 +22,7 @@ export default class SchemaManager {
let promise = new Promise((resolve, reject) => {
this._schema = {};
SwaggerParser.bundle(url)
SwaggerParser.bundle(url, {http: {withCredentials: false}})
.then(
(schema) => {
this._schema = schema;

View File

@ -22,6 +22,7 @@
"jspm": {
"configFile": "system.config.js",
"dependencies": {
"RomanGotsiy/json-schema-ref-parser": "github:RomanGotsiy/json-schema-ref-parser@master",
"angular2": "npm:angular2@^2.0.0-alpha.45",
"es6-shim": "github:es-shims/es6-shim@^0.33.6",
"json-formatter-js": "npm:json-formatter-js@^0.2.0",
@ -40,6 +41,11 @@
"core-js": "npm:core-js@^1.1.4",
"css": "github:systemjs/plugin-css@^0.1.18",
"systemjs/plugin-json": "github:systemjs/plugin-json@^0.1.0"
},
"overrides": {
"github:RomanGotsiy/json-schema-ref-parser@master": {
"registry": "npm"
}
}
},
"devDependencies": {

View File

@ -37,6 +37,7 @@ System.config({
},
map: {
"RomanGotsiy/json-schema-ref-parser": "github:RomanGotsiy/json-schema-ref-parser@master",
"angular2": "npm:angular2@2.0.0-alpha.45",
"babel": "npm:babel-core@5.8.25",
"babel-runtime": "npm:babel-runtime@5.8.25",
@ -54,6 +55,30 @@ System.config({
"swagger-parser": "npm:swagger-parser@3.3.0",
"systemjs/plugin-json": "github:systemjs/plugin-json@0.1.0",
"zone.js": "npm:zone.js@0.5.8",
"github:RomanGotsiy/json-schema-ref-parser@master": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"call-me-maybe": "npm:call-me-maybe@1.0.1",
"child_process": "github:jspm/nodelibs-child_process@0.1.0",
"debug": "npm:debug@2.2.0",
"es6-promise": "npm:es6-promise@3.0.2",
"events": "github:jspm/nodelibs-events@0.1.1",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"http": "github:jspm/nodelibs-http@1.7.1",
"https": "github:jspm/nodelibs-https@0.1.0",
"js-yaml": "npm:js-yaml@3.4.3",
"ono": "npm:ono@1.0.22",
"os": "github:jspm/nodelibs-os@0.1.0",
"path": "github:jspm/nodelibs-path@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"punycode": "github:jspm/nodelibs-punycode@0.1.0",
"querystring": "github:jspm/nodelibs-querystring@0.1.0",
"stream": "github:jspm/nodelibs-stream@0.1.0",
"string_decoder": "github:jspm/nodelibs-string_decoder@0.1.0",
"systemjs-json": "github:systemjs/plugin-json@0.1.0",
"tty": "github:jspm/nodelibs-tty@0.1.0",
"url": "github:jspm/nodelibs-url@0.1.0",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"github:jspm/nodelibs-assert@0.1.0": {
"assert": "npm:assert@1.3.0"
},
@ -64,7 +89,7 @@ System.config({
"constants-browserify": "npm:constants-browserify@0.0.1"
},
"github:jspm/nodelibs-crypto@0.1.0": {
"crypto-browserify": "npm:crypto-browserify@3.10.0"
"crypto-browserify": "npm:crypto-browserify@3.11.0"
},
"github:jspm/nodelibs-events@0.1.1": {
"events": "npm:events@1.0.2"
@ -150,7 +175,7 @@ System.config({
"reflect-metadata": "npm:reflect-metadata@0.1.2",
"zone.js": "npm:zone.js@0.5.8"
},
"npm:argparse@1.0.2": {
"npm:argparse@1.0.3": {
"assert": "github:jspm/nodelibs-assert@0.1.0",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"lodash": "npm:lodash@3.10.1",
@ -159,9 +184,9 @@ System.config({
"sprintf-js": "npm:sprintf-js@1.0.3",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:asn1.js@2.2.1": {
"npm:asn1.js@4.0.0": {
"assert": "github:jspm/nodelibs-assert@0.1.0",
"bn.js": "npm:bn.js@2.2.0",
"bn.js": "npm:bn.js@4.1.1",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"inherits": "npm:inherits@2.0.1",
"minimalistic-assert": "npm:minimalistic-assert@1.0.0",
@ -230,23 +255,23 @@ System.config({
"des.js": "npm:des.js@1.0.0",
"inherits": "npm:inherits@2.0.1"
},
"npm:browserify-rsa@2.0.1": {
"bn.js": "npm:bn.js@2.2.0",
"npm:browserify-rsa@4.0.0": {
"bn.js": "npm:bn.js@4.1.1",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"constants": "github:jspm/nodelibs-constants@0.1.0",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"randombytes": "npm:randombytes@2.0.1"
},
"npm:browserify-sign@3.0.8": {
"bn.js": "npm:bn.js@2.2.0",
"browserify-rsa": "npm:browserify-rsa@2.0.1",
"npm:browserify-sign@4.0.0": {
"bn.js": "npm:bn.js@4.1.1",
"browserify-rsa": "npm:browserify-rsa@4.0.0",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"create-hash": "npm:create-hash@1.1.2",
"create-hmac": "npm:create-hmac@1.1.4",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"elliptic": "npm:elliptic@3.1.0",
"elliptic": "npm:elliptic@6.0.1",
"inherits": "npm:inherits@2.0.1",
"parse-asn1": "npm:parse-asn1@3.0.2",
"parse-asn1": "npm:parse-asn1@5.0.0",
"stream": "github:jspm/nodelibs-stream@0.1.0"
},
"npm:browserify-zlib@0.1.4": {
@ -321,11 +346,11 @@ System.config({
"npm:core-util-is@1.0.1": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0"
},
"npm:create-ecdh@2.0.2": {
"bn.js": "npm:bn.js@2.2.0",
"npm:create-ecdh@4.0.0": {
"bn.js": "npm:bn.js@4.1.1",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"elliptic": "npm:elliptic@3.1.0"
"elliptic": "npm:elliptic@6.0.1"
},
"npm:create-hash@1.1.2": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
@ -347,16 +372,16 @@ System.config({
"boom": "npm:boom@2.9.0",
"crypto": "github:jspm/nodelibs-crypto@0.1.0"
},
"npm:crypto-browserify@3.10.0": {
"npm:crypto-browserify@3.11.0": {
"browserify-cipher": "npm:browserify-cipher@1.0.0",
"browserify-sign": "npm:browserify-sign@3.0.8",
"create-ecdh": "npm:create-ecdh@2.0.2",
"browserify-sign": "npm:browserify-sign@4.0.0",
"create-ecdh": "npm:create-ecdh@4.0.0",
"create-hash": "npm:create-hash@1.1.2",
"create-hmac": "npm:create-hmac@1.1.4",
"diffie-hellman": "npm:diffie-hellman@3.0.2",
"diffie-hellman": "npm:diffie-hellman@5.0.0",
"inherits": "npm:inherits@2.0.1",
"pbkdf2": "npm:pbkdf2@3.0.4",
"public-encrypt": "npm:public-encrypt@2.0.1",
"public-encrypt": "npm:public-encrypt@4.0.0",
"randombytes": "npm:randombytes@2.0.1"
},
"npm:ctype@0.5.3": {
@ -381,16 +406,16 @@ System.config({
"inherits": "npm:inherits@2.0.1",
"minimalistic-assert": "npm:minimalistic-assert@1.0.0"
},
"npm:diffie-hellman@3.0.2": {
"bn.js": "npm:bn.js@2.2.0",
"npm:diffie-hellman@5.0.0": {
"bn.js": "npm:bn.js@4.1.1",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"miller-rabin": "npm:miller-rabin@2.0.1",
"miller-rabin": "npm:miller-rabin@4.0.0",
"randombytes": "npm:randombytes@2.0.1",
"systemjs-json": "github:systemjs/plugin-json@0.1.0"
},
"npm:elliptic@3.1.0": {
"bn.js": "npm:bn.js@2.2.0",
"npm:elliptic@6.0.1": {
"bn.js": "npm:bn.js@4.1.1",
"brorand": "npm:brorand@1.0.5",
"hash.js": "npm:hash.js@1.0.3",
"inherits": "npm:inherits@2.0.1",
@ -399,7 +424,7 @@ System.config({
"npm:es6-promise@3.0.2": {
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:esprima@2.2.0": {
"npm:esprima@2.7.0": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"process": "github:jspm/nodelibs-process@0.1.2"
},
@ -495,9 +520,9 @@ System.config({
"stream": "github:jspm/nodelibs-stream@0.1.0",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:js-yaml@3.4.2": {
"argparse": "npm:argparse@1.0.2",
"esprima": "npm:esprima@2.2.0",
"npm:js-yaml@3.4.3": {
"argparse": "npm:argparse@1.0.3",
"esprima": "npm:esprima@2.7.0",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"process": "github:jspm/nodelibs-process@0.1.2",
"systemjs-json": "github:systemjs/plugin-json@0.1.0",
@ -511,25 +536,6 @@ System.config({
"npm:json-pointer@0.3.0": {
"foreach": "npm:foreach@2.0.5"
},
"npm:json-schema-ref-parser@1.4.0": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"call-me-maybe": "npm:call-me-maybe@1.0.1",
"debug": "npm:debug@2.2.0",
"es6-promise": "npm:es6-promise@3.0.2",
"events": "github:jspm/nodelibs-events@0.1.1",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"http": "github:jspm/nodelibs-http@1.7.1",
"https": "github:jspm/nodelibs-https@0.1.0",
"js-yaml": "npm:js-yaml@3.4.2",
"ono": "npm:ono@1.0.22",
"process": "github:jspm/nodelibs-process@0.1.2",
"punycode": "github:jspm/nodelibs-punycode@0.1.0",
"querystring": "github:jspm/nodelibs-querystring@0.1.0",
"stream": "github:jspm/nodelibs-stream@0.1.0",
"string_decoder": "github:jspm/nodelibs-string_decoder@0.1.0",
"url": "github:jspm/nodelibs-url@0.1.0",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:json-schema-view-js@0.2.0": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"process": "github:jspm/nodelibs-process@0.1.2",
@ -552,8 +558,8 @@ System.config({
"npm:lodash@3.10.1": {
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:miller-rabin@2.0.1": {
"bn.js": "npm:bn.js@2.2.0",
"npm:miller-rabin@4.0.0": {
"bn.js": "npm:bn.js@4.1.1",
"brorand": "npm:brorand@1.0.5"
},
"npm:mime-db@1.19.0": {
@ -583,8 +589,8 @@ System.config({
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:parse-asn1@3.0.2": {
"asn1.js": "npm:asn1.js@2.2.1",
"npm:parse-asn1@5.0.0": {
"asn1.js": "npm:asn1.js@4.0.0",
"browserify-aes": "npm:browserify-aes@1.0.5",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"create-hash": "npm:create-hash@1.1.2",
@ -610,13 +616,13 @@ System.config({
"npm:process@0.11.2": {
"assert": "github:jspm/nodelibs-assert@0.1.0"
},
"npm:public-encrypt@2.0.1": {
"bn.js": "npm:bn.js@2.2.0",
"browserify-rsa": "npm:browserify-rsa@2.0.1",
"npm:public-encrypt@4.0.0": {
"bn.js": "npm:bn.js@4.1.1",
"browserify-rsa": "npm:browserify-rsa@4.0.0",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"create-hash": "npm:create-hash@1.1.2",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"parse-asn1": "npm:parse-asn1@3.0.2",
"parse-asn1": "npm:parse-asn1@5.0.0",
"randombytes": "npm:randombytes@2.0.1"
},
"npm:punycode@1.3.2": {
@ -737,7 +743,7 @@ System.config({
"fs": "github:jspm/nodelibs-fs@0.1.2",
"http": "github:jspm/nodelibs-http@1.7.1",
"https": "github:jspm/nodelibs-https@0.1.0",
"json-schema-ref-parser": "npm:json-schema-ref-parser@1.4.0",
"json-schema-ref-parser": "github:RomanGotsiy/json-schema-ref-parser@master",
"ono": "npm:ono@1.0.22",
"process": "github:jspm/nodelibs-process@0.1.2",
"punycode": "github:jspm/nodelibs-punycode@0.1.0",