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
**breaking change**: only impacts those following the "custom usage" approach, it _does not_ effect users using the high level, "bundled" `jsonSchema()` or `json5Schema()` modes.
6
+
7
+
Previously, we ask you to pass schema to each of the linter, completion and hover extensions.
8
+
9
+
Now, we ask you to use these new exports to instantiate your schema like this, with `stateExtensions(schema)` as a new extension, and the only one that you pass schema to, like so:
Copy file name to clipboardExpand all lines: README.md
+97-26Lines changed: 97 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,28 +8,29 @@ Codemirror 6 extensions that provide full [JSON Schema](https://json-schema.org/
8
8
9
9
## Features
10
10
11
-
This is now a full-featured library for both json4 (aka json) and json5, but the APIs may still have breakages.
11
+
This is now a full-featured library for both json4 (aka json) and json5 using extensions, so they should compatible with any frontend framework and/or integration library
12
12
13
-
So far mostly tested with standard json4 schema specs. See
13
+
- ✅ validation messages
14
+
- ✅ autocompletion with insert text
15
+
- ✅ hover tooltips
16
+
- ✅ dynamic, per-editor-instance schemas using codemirror `StateField` and linting refresh
0 commit comments