Json validation with json-schema


Hi all,
Do you know if there is a way to make codemirror validate (and provide suggestions - autocomplete) a json document using a json-schema?

Thanks a lot


You can program this, but I’m not aware of an existing ready-to-use solution that does it.


Thank you,
I’m not sure I can get the time to code it, but in case I do; can you point me to the right direction? I’ve never read the codemirror source before.


You probably don’t need to read the source—just the docs. You can implement features like this as addons without modifying the core library. You’d probably want to integrate with the lint addon for the checking and the show-hint addon for providing completions.