Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Failing to parse large/complex swagger.json #77

Open
peterberkman opened this issue Jun 6, 2017 · 7 comments
Open

Failing to parse large/complex swagger.json #77

peterberkman opened this issue Jun 6, 2017 · 7 comments
Labels

Comments

@peterberkman
Copy link

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

@mathieuales
Copy link
Collaborator

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

@mathieuales
Copy link
Collaborator

mathieuales commented Jun 22, 2017

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

@peterberkman
Copy link
Author

peterberkman commented Jun 29, 2017

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?

@mathieuales
Copy link
Collaborator

@peterberkman which AngularJS version are you using ?

@peterberkman
Copy link
Author

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!!!

@mathieuales
Copy link
Collaborator

mathieuales commented Jul 26, 2017

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants