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
I fell in love with LSPs using schemastore so I am trying to convince my devops team to use this project in their CI/CD for schema validation.
My target files was almost exclusively multidoc YAML files so I modified the cli.js and parser.js to support multidoc YAML files.
Would you want this functionality contributed back? If so, I can discuss further and open a PR.
npm run v8r catalog-info.yaml
> v8r@2.1.0 v8r
> src/index.js catalog-info.yaml
ℹ No config file found
ℹ Processing ./catalog-info.yaml
ℹ Found schema in https://www.schemastore.org/api/json/catalog.json ...
ℹ Validating ./catalog-info.yaml against schema from https://json.schemastore.org/catalog-info.json ...
ℹ parsed yaml file as a multi-yaml doc
✔ ./catalog-info.yaml[0] is valid
✔ ./catalog-info.yaml[1] is valid
The text was updated successfully, but these errors were encountered:
It is not a use-case I am super familiar with, but happy to look at a PR.
Just thinking through some considerations: We would have to assume that all of the yaml documents in a given file conform to the same schema. I don't think we could deal with a situation where a file contains multiple yaml documents and they need to be validated against different schemas. At the moment everything is based on one schema being used to validate a file. I think that's a reasonable limitation.
I fell in love with LSPs using schemastore so I am trying to convince my devops team to use this project in their CI/CD for schema validation.
My target files was almost exclusively multidoc YAML files so I modified the cli.js and parser.js to support multidoc YAML files.
Would you want this functionality contributed back? If so, I can discuss further and open a PR.
The text was updated successfully, but these errors were encountered: