question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[json] Json Schema Exclusion doesn't work

See original GitHub issue

Type: Bug

When attempting to exclude files from a generic *.json schema, VSCode doesn’t seem to recognize that, and apply it anyway.

VS Code version: Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T04:27:29.066Z) OS version: Windows_NT x64 10.0.19043 Modes: Sandboxed: No Remote OS version: Linux arm64 5.15.0-1021-oracle

System Info
Item Value
CPUs AMD Ryzen 5 1600 Six-Core Processor (12 x 3194)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 15.93GB (8.44GB free)
Process Argv –crash-reporter-id e072beae-0f6d-4b6e-801e-9d13707ea4cf
Screen Reader no
VM 0%
Item Value
Remote SSH: Oracle
OS Linux arm64 5.15.0-1021-oracle
CPUs Neoverse-N1 (4 x 0)
Memory (System) 23.43GB (20.44GB free)
VM 0%
Extensions (33)
Extension Author (truncated) Version
5et-homebrew-helper GoR 0.3.1
vscode-todo-highlight jgc 2.0.4
vscord Leo 5.0.10
dotenv mik 1.0.1
jupyter-keymap ms- 1.0.0
remote-ssh ms- 0.92.0
remote-ssh-edit ms- 0.84.0
remote-explorer ms- 0.0.2
5e-syntax Tre 0.1.0
vscode-icons vsc 12.0.1
unity-snippets Ycl 0.1.2
go-to-character-position dav 2.0.0
vscode-eslint dba 2.2.6
git-project-manager fel 1.8.2
vscode-npm fkn 3.3.0
sort-json-array fvc 3.1.0
copilot Git 1.61.7372
git-graph mhu 1.30.0
isort ms- 2022.8.0
python ms- 2022.18.2
vscode-pylance ms- 2022.11.30
jupyter ms- 2022.9.1303220346
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.12
vscode-jupyter-cell-tags ms- 0.1.6
vscode-jupyter-slideshow ms- 0.1.5
vscode-json-editor nic 0.3.0
vscode-yaml red 1.10.1
svelte-vscode sve 106.2.0
pdf tom 1.2.0
intellicode-api-usage-examples Vis 0.2.6
vscodeintellicode Vis 1.2.29
json Zai 2.0.2

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
vsccc:30610678
pyindex848:30577860
nodejswelcome1:30587005
fc301958:30595537
3biah626:30602489
gswce1:30612156
iaj6b796:30613358
dbltrim-noruby:30604474
f6dab269:30613381

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
aeschlicommented, Nov 21, 2022

Ok, I see the bug. It’s because of here, where we merge the schema associations

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON-schema exclude properties (opposite to required ...
In the following example, all keys have to map to a string URI. We furthermore exclude all keys that are not alphanumeric (via...
Read more >
Exclusion of all errors in Detailed/Basic validation result formats
I'd expect the Detailed/Basic formatted results to not include validation errors if those errors wouldn't cause the entire document to be ...
Read more >
Applying Subschemas Conditionally - JSON Schema
If you don't have their credit card number, a billing address would not be required. We represent this dependency of one property on...
Read more >
Handling Validation Errors - python-jsonschema
When an invalid instance is encountered, a ValidationError will be raised or returned, depending on which method or function is used. exception jsonschema....
Read more >
How to Validate Your JSON Using JSON Schema
A sample schema, like what we'd get from json.load() >>> schema = { ... If no exception is raised by validate(), the instance...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found