Open EricWittmann opened 9 years ago
Hi Eric,
Speaking of apiman, I just ran into this error while trying to get it going with the keycloak oauth plugin!
A simple fix for json-editor v0.7.21 is to change line 6832 of jsoneditor.js from:
var l = matches.length;
to
var l = matches && matches.length;
in order to eliminate a bad reference when matches
is null. I'll try to put a quick PR together for it.
Cheers, Robert
Ah nice - that's exactly the error. We fixed the problem in apiman by reverting to an older version of json-editor, but getting a fix is obviously way better! :)
@rob3c which version of apiman were you seeing this issue on? Not the very latest release? If you're still seeing it on the latest release, feel free to come and ping us on https://github.com/apiman/apiman
@msavy I'm using the 1.1.4.Final apiman/keycloak docker container (with the keycloak oauth plugin at the same version), which I believe is the latest containerized version available. I only see this issue in the configuration screen for the oauth plugin. As a workaround on my windows dev box, I'm using Fiddler's AutoResponder to server my fixed version instead since that docker container uses jsoneditor v0.7.21.
We are using json-editor in our project called apiman. For some schemas (not all) we have started seeing an error when compiling/loading the schema. We have some schemas that work and some that hit this problem. The problem was introduced in 0.7.19 I believe, and it still seems to be a problem as of 0.7.21.
Here is the stack:
Here is the schema that causes this problem: