Open
Description
Type: Bug
Description
When opening a JSON file with the following content in VSCode, incorrect validation errors appear:
{
"$schema": "https://raw.githubusercontent.com/serverlessworkflow/serverlessworkflow.github.io/main/public/schemas/1.0.0/workflow.json",
"document": {
"dsl": "1.0.0",
"namespace": "default",
"name": "sample-workflow",
"version": "0.1.0"
},
"do": [
{
"step1": {
"set": {
"someVariable": "someValue"
}
}
}
]
}
Expected Behavior
VSCode should validate the JSON file correctly based on the provided schema. This file is valid.
Actual Behavior
L11 will display the following validation errors:
Missing property "call".
Missing property "with".
TaskBase
An object inherited by all tasks.
L12 will display the following validation error:
Property set is not allowed.
Additional Notes
I had the validation working in a web project using Monaco Editor. So I went to the Monaco Playground to make some experiments. It seems that version 0.49.0 was validating the JSON file properly, but starting at version 0.50.0, the current behavior appeared.
System Info
VS Code version: Code 1.98.2 (ddc367ed5c8936efe395cffeec279b04ffd7db78, 2025-03-12T13:32:45.399Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
Item | Value |
---|---|
CPUs | 12th Gen Intel(R) Core(TM) i9-12900K (24 x 3187) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on 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_graphite: disabled_off video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
Load (avg) | undefined |
Memory (System) | 63.75GB (46.55GB free) |
Process Argv | --folder-uri file:///c%3A/Users/JB/Desktop/test_sw --crash-reporter-id fe8b96b2-7bbd-404b-b580-3408ff2b375e |
Screen Reader | no |
VM | 0% |
Extensions (1)
Extension | Author (truncated) | Version |
---|---|---|
gitlens | eam | 16.3.3 |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
850i5325:31264362
968h8231:31271074
jda6j935:31233686
pythoneinst12cf:31262606
bgtreat:31268568
fh1c7952:31258891
4gafe986:31271826
31787653:31262186
3e8i5726:31271747
80860236:31264450
49da9784:31264548
Metadata
Metadata
Assignees
Labels
No labels