Hi, i get this error when i'm trying to instantiate a new client.
{
"apis": Object {},
"errors": Array [
[TypeError: undefined is not a function (evaluating 'L.default.applyPatch(e, f)')],
],
"originalSpec": undefined,
"spec": Object {},
"url": "http://192.168.1.131:3000/v1/specification",
}
- version swagger-client: 3.4.8
- Platform: React-native
dependencies:
babel-runtime "^6.23.0"
btoa "1.1.2"
cookie "^0.3.1"
cross-fetch "0.0.8"
deep-extend "^0.4.1"
encode-3986 "^1.0.0"
fast-json-patch "^1.2.2"
isomorphic-form-data "0.0.1"
js-yaml "^3.8.1"
lodash "^4.16.2"
qs "^6.3.0"
url "^0.11.0"
utf8-bytes "0.0.1"
utfstring "^2.0.0"
The specification I'm trying to load is a v2.0,
I'm trying also with the spec from the example http://petstore.swagger.io/v2/swagger.json
Swagger('http://petstore.swagger.io/v2/swagger.json')
.then(c => {
Logger.info('Swagger client initialized', c)
client = c
})
It also shows the same error.