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
It's a bit tricky to fully hook into the JSON schema validation logic of Monaco Editor, but we can at least filter out/hide the warning in our bottom drawer. So a fix would look like this:
We'd still have the squiggly line in the editor, but at least no warning text and icon in the bottom drawer.
The text was updated successfully, but these errors were encountered:
Use custom `JSONWorker` so we can import our own up-to-date version of
`vscode-json-languageservice` which has support for JSON Schema Draft
2020-12.
Fixes#2 #patch
### QA
To test, visit https://deploy-preview-21--gobl-build.netlify.app/ and
type/paste a JSON doc that references a Draft 2020-12 schema. E.g.:
```json
{
"$schema": "https://json-schema.org/learn/examples/address.schema.json"
}
```
You **shouldn't** see the warning described in #21.
(Note: You'll see an error stating that the `$schema` value is not right
— that's an expected error, ignore for this QA)
It's a bit tricky to fully hook into the JSON schema validation logic of Monaco Editor, but we can at least filter out/hide the warning in our bottom drawer. So a fix would look like this:
We'd still have the squiggly line in the editor, but at least no warning text and icon in the bottom drawer.
The text was updated successfully, but these errors were encountered: