Skip to content

JSON schema validation does not work for array items when in a combined schema #231

@shuebner

Description

@shuebner

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.88.1
  • OS Version: Windows 10 Enterprise 10.0.19045

Steps to Reproduce:

  1. Define a JSON schema with array tuple validation:
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "array",
    "items": [
        {
            "type": "string"
        },
        {
            "type": "integer"
        }
    ]
}
  1. Let VSCode validate an invalid file:
[
    42,
    "foo"
]
  1. Observe that VSCode does not show any error even though the file is not valid against the schema.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions