You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
validation fails, because the repository string @bitnami appears to match both of the elements of the oneOf.
However, @bitnami is not a valid uri format, as far as I can tell, per the json-schema spec. Per RFC 3986 Secion 4.1 it'd be a valid uri-reference.
It's odd, because it appears yaml-language-server handles this case, but perhaps that logic is not mixing correctly with oneOf? (Or maybe this code isn't code path being used here, and the same logic is missing in some other validation)
Expected Behavior
Valid Helm Chart.yaml validates.
Current Behavior
[{
"resource": "/C:/Projects/Arsenal/services/charts/premspec-services/Chart.yaml",
"owner": "_generated_diagnostic_collection_name_#2",
"severity": 8,
"message": "Matches multiple schemas when only one must validate.",
"source": "yaml-schema: Helm Chart.yaml",
"startLineNumber": 13,
"startColumn": 15,
"endLineNumber": 13,
"endColumn": 16
},{
"resource": "/C:/Projects/Arsenal/services/charts/premspec-services/Chart.yaml",
"owner": "_generated_diagnostic_collection_name_#2",
"severity": 8,
"message": "Matches multiple schemas when only one must validate.",
"source": "yaml-schema: Helm Chart.yaml",
"startLineNumber": 16,
"startColumn": 15,
"endLineNumber": 16,
"endColumn": 16
}]
Steps to Reproduce
Create a Chart.yaml with the above content
Environment
Windows
Mac
Linux
other (please specify)
VSCode 1.62.1, with YAML extension version 1.2.0.
The text was updated successfully, but these errors were encountered:
Describe the bug
The schema for helm Charts on SchemaStore has the following for the
dependencies.repository
field:Given a valid Helm Chart.yaml:
validation fails, because the repository string
@bitnami
appears to match both of the elements of theoneOf
.However,
@bitnami
is not a validuri
format, as far as I can tell, per the json-schema spec. Per RFC 3986 Secion 4.1 it'd be a validuri-reference
.It's odd, because it appears yaml-language-server handles this case, but perhaps that logic is not mixing correctly with
oneOf
? (Or maybe this code isn't code path being used here, and the same logic is missing in some other validation)Expected Behavior
Valid Helm Chart.yaml validates.
Current Behavior
Steps to Reproduce
Environment
VSCode 1.62.1, with YAML extension version 1.2.0.
The text was updated successfully, but these errors were encountered: