We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41c0f66 commit edafa8fCopy full SHA for edafa8f
.changeset/few-emus-live.md
@@ -0,0 +1,5 @@
1
+---
2
+"codemirror-json-schema": patch
3
4
+
5
+validate all strings with length > 1
src/features/validation.ts
@@ -128,7 +128,7 @@ export class JSONValidation {
128
const text = view.state.doc.toString();
129
130
// ignore blank json strings
131
- if (!text || text.trim().length < 3) return [];
+ if (!text || !text.length) return [];
132
133
const json = this.parser(view.state);
134
0 commit comments