jsonnext / codemirror-json-schema

A JSONSchema enabled mode for codemirror 6, for json4 and json5, inspired by monaco-json
https://codemirror-json-schema.netlify.app
MIT License
63 stars 12 forks source link

support complex base types #73

Closed acao closed 4 months ago

acao commented 10 months ago

This is a pattern that seems fairly common, that appears to not be working with any of the features image

I think it's because we skip the root node with our utilities (see the failing PR). This will of course break quite a few things, especially in the autocomplete, but I think would be worth it for full spec compliance - this is why a lot of tooling configs don't work currently

tsconfig.json is a good example of this, I believe it uses a root anyOf last I checked

related: #99 , #98

imolorhe commented 4 months ago

This should be resolved in #102 (at least for completions)