apupier commented on issue #358:
URL: https://github.com/apache/camel-k-runtime/issues/358#issuecomment-652432435


   > There is an error message `Matches multiple schemas when only one must 
validate.` but it smells a limitation on yaml Language server. it seems there 
is a workaround to shut ignore the error in the yaml language server especially 
for that for Kubernetes schema 
https://github.com/redhat-developer/yaml-language-server/blob/8f8a4c52363d2c8c003e08b12cb7db97550afbca/src/languageservice/services/yamlValidation.ts#L91
   
   in fact, it seems that it is coming from 
https://github.com/microsoft/vscode-json-languageservice/blame/fad098244642100e5054dedefed9da905b24aedc/src/parser/jsonParser.ts#L458
 and Yaml Language Server has put a workaround flag to ignore this error.
   
   If i understand well, this message is provided when several different 
elements are matching the same tag.
   I found that several json schema has been modified to avoid that it occurs 
but wasn't able to find a pattern on how they fixed it.
   For Kubernetes, it seems that they just put the silent mode at Yaml language 
Server level.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to