Test cases for vscode-yaml and yaml-language-server comparing validation and syntax highlighting output between JSON and YAML files
-
Spec
-
Guides
-
Stack Overflow
| Lang | Expected | Passed |
|---|---|---|
| Yaml | Require prop "options" | ✅ |
| Json | Require prop "options" | ✅ |
"if": {
"properties": {
"controlType": {"const": "dropdown"}
}
},
"then": {
"required": ["options"]
}"oneOf": [
{
"properties": {
"controlType": {"const": "dropdown"}
},
"required": ["options"]
},
{
"properties": {
"controlType": {"const": "button"}
}
}
]| Lang | Expected | Passed |
|---|---|---|
| Yaml | Autocomplete for "options" | ❌ |
| Json | Autocomplete for "options" | ✅ |
"if": {
"properties": {
"controlType": {"const": "dropdown"}
}
},
"then": {
"properties": {
"options": {
"type": "array",
"items": {"type": "string"}
}
}
}"oneOf": [
{
"properties": {
"controlType": {"const": "dropdown"},
"options": {
"type": "array",
"items": {"type": "string"}
}
},
"required": ["options"]
},
{
"properties": {
"controlType": {"const": "button"}
}
}
]
