-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Description
Describe the bug
Wrong diagnostic message when using custom k8s schema instead of "kubernetes". Even if the custom schema is the same as the "kubernetes" one. I checked #247 but it's not the same thing.
Expected Behavior
Should not complain "Matches multiple schemas when only one must validate."
Current Behavior
Complains "Matches multiple schemas when only one must validate."
Steps to Reproduce
- Open a new folder in VSCode.
- Create a k8s yaml file like:
apiVersion: v1 kind: Service metadata: name: longhorn-ui-nodeport namespace: longhorn-system spec: type: NodePort ports: - port: 80 targetPort: 80 nodePort: 30080 selector: app: longhorn-ui
- Create config file
.vscode/settings.jsonwith the following content, and make sureyaml.schemasis not configured in user settings:{ "yaml.schemas": { "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.32.9-standalone-strict/all.json": [ "*.yaml" ], } } - The error happens.
Environment
- Windows
- Mac (VSCode
1.106.0with redhat.vscode-yaml1.19.1) - Linux
- other (please specify)
Metadata
Metadata
Assignees
Labels
No labels