angular-swagger-ui icon indicating copy to clipboard operation
angular-swagger-ui copied to clipboard

Failing to parse large/complex swagger.json

Open peterberkman opened this issue 7 years ago • 7 comments

I'm working with HL7 FHIR and, admittedly, their structures are HUGE and complex.

the error I'm getting from the error handler is:

error:  Failed to parse Swagger specification: Invalid string length

I tried to track it down, but the closest source I could get to is the parser.

attached is the json. I'd really appreciate if you could tell me what's going on. I'm a bit lost.

THANK YOU! swagger.zip

peterberkman avatar Jun 06 '17 14:06 peterberkman

unable to generate the json sample of #/definitions/CapabilityStatement, object seems too big RangeError: Invalid string length at JSON.stringify (<anonymous>)

mathieuales avatar Jun 07 '17 13:06 mathieuales

partially fixed in version 0.4.4: avoid stopping model generation when issue occurs TODO: find a way to completely fix the issue

mathieuales avatar Jun 22 '17 12:06 mathieuales

Mathieuales, great news! However, we have been using the 0.3.5 version. When I try to change to 0.4.4, I get this weird LRU type error "key must be a string or number....' I think we may be on an earlier version of AngularJS? Have you run into this with your 0.4 revs?

peterberkman avatar Jun 29 '17 21:06 peterberkman

@peterberkman which AngularJS version are you using ?

mathieuales avatar Jun 30 '17 07:06 mathieuales

We're stuck on 1.3 for a while. I looked in the source and you're up to 1.5 now. I'll manually patch it or something. Thanks very much for all your work and help with this!!!

peterberkman avatar Jun 30 '17 14:06 peterberkman

http://errors.angularjs.org/1.6.5/$parse/syntax?p0=%3A&p1=is%20an%20unexpected%20token&p2=5&p3=http%3A%2F%2Fpetstore.swagger.io%2Fv2%2Fswagger.json&p4=%3A%2F%2Fpetstore.swagger.io%2Fv2%2Fswagger.json

gerbil avatar Jul 26 '17 08:07 gerbil

@gerbil What is your question ? Why are you adding this to this issue ? Which version of angular-swagger-ui are you using ? Without context of use and detailed explanation I can't do anything for you

mathieuales avatar Jul 26 '17 12:07 mathieuales