-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with v1.6.4 vs v1.7.0 #179
Comments
Hey @jsmartfo. Could you provide me with a link to your spec? |
The spec is an internal one that I cannot publish yet, I am more that happy to debug -- let me try and setup and work out what is happening |
ok, if you can't find the exact issue it would be great if you come up with a minimal reproducible spec. Most likely the issue is connected to the second-level ( |
Yep will do, either way will get it across. May run into next week as I have some commitments this week/end. |
You're correct, it's an error when second level heading is in desc but you don't have a first level heading. It appears
The line above is the culprit as We assign It's seems to be I can do a PR, please let me know how you want to proceed. |
I believe safe guard would be better. If you think so you can proceed with PR. This part of code is not covered by tests so do not worry about it. I will add tests myself asap Thanks |
Just wondering what would be the issue leaving their choice of header and not altering it under the covers? Something like below, we still push into the heading arrays as needed, but the
|
@jsmartfo |
I will get something across to you as soon as I can, have a couple of hoops to jump through at work first. |
Fixed on v1.8.0 |
I am seeing a error kicked into the console that breaks the page, it was working fine with
v1.6.4
when I migrate tov1.7.0
I see the below:ReDoc initialized! redoc.min.js:15 EXCEPTION: Uncaught (in promise): TypeError: Cannot read property 'split' of null TypeError: Cannot read property 'split' of null at t.exports (https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:25:29784) at t.headingOpenRule (https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:23:13881) at r.render (https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:41:12080) at i.render (https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:41:8399) at t.renderMd (https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:23:14412) at t.preprocess (https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:8:6678) at t.init (https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:8:6377) at https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:8:5848 at t.invoke (https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:48:8393) at Object.onInvoke (https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:11:2457) at t.invoke (https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:48:8333) at n.run (https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:48:5258) at https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:48:2869 at t.invokeTask (https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:48:9070) at Object.onInvokeTask (https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js:11:2357)
BTW, fantastic viewer really enhances the definitions.
The text was updated successfully, but these errors were encountered: