Describe the bug
I'm getting an Unexpected property validation error for a Google Cloud Workflows yaml file (actually all files of this type generate the same problem). The YAML file seems to be valid according to the schema (which I'm setting explicitly in the file). Disabling the validation doesn't work either.
It looks like this has to do with the top level property, the validation works just fine (and detects real problems) in the rest of the file and I can also disable the validation in those parts.
Expected Behavior
No validation error should be generated.
Current Behavior
There's an incorrect Unexpected property for the top level property.
Steps to Reproduce
See below the snippet that causes this problem (although all my workflows files have the same behavior):
# yaml-language-server: $schema=https://www.schemastore.org/workflows.json
main:
params: [input]
steps:
- init:
assign:
- message: "Hello World"
- count: 0
- check_condition:
switch:
- condition: ${count < 5}
next: log_message
next: finish
- log_message:
call: sys.log
args:
text: ${message + " " + count}
severity: "INFO"
next: increment
- increment:
assign:
- count: ${count + 1}
next: check_condition
- finish:
return: ${"Done. Counted to " + count}
Environment
Describe the bug
I'm getting an
Unexpected propertyvalidation error for a Google Cloud Workflows yaml file (actually all files of this type generate the same problem). The YAML file seems to be valid according to the schema (which I'm setting explicitly in the file). Disabling the validation doesn't work either.It looks like this has to do with the top level property, the validation works just fine (and detects real problems) in the rest of the file and I can also disable the validation in those parts.
Expected Behavior
No validation error should be generated.
Current Behavior
There's an incorrect
Unexpected propertyfor the top level property.Steps to Reproduce
See below the snippet that causes this problem (although all my workflows files have the same behavior):
Environment