You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! First of all, thanks for this library, it really helps me building a JSON editor with a custom json format and conveniently validate it. Unfortunately, I ran into an issue where JSON schema with conditions doesn't trigger autocomplete to show up. For instance, I have a json structure like below:
And I expect that when I type in "Test" into "type" field I get "a" and "b" hints for "props" field, but instead I get nothing (it still shows that it's number type, although validation works correctly):
As mentioned in #129 we don't get fully resolved schemas based on the
data. Following the discussion in
sagold/json-schema-library#61, that appears to
be expected.
The workaround I implemented is to "fake" a deep schema resolution by
performing the shallow schema resolution on the direct children
properties of the schema (we only really care about the direct children
in this context).
Hi there! First of all, thanks for this library, it really helps me building a JSON editor with a custom json format and conveniently validate it. Unfortunately, I ran into an issue where JSON schema with conditions doesn't trigger autocomplete to show up. For instance, I have a json structure like below:
And I expect that when I type in "Test" into "type" field I get "a" and "b" hints for "props" field, but instead I get nothing (it still shows that it's number type, although validation works correctly):
Here is my React component:
I'm using: node v18.7.0, "codemirror-json-schema": "^0.7.8", "@codemirror/lang-json": "^6.0.1", "@uiw/react-codemirror": "^4.22.1".
The text was updated successfully, but these errors were encountered: