Skip to content

Devfile v2 linter auto complete & validation #456

@maysunfaisal

Description

@maysunfaisal

Background

Currently the VS Code YAML extension provided by RH - https://github.com/redhat-developer/yaml-language-server uses the schemas stored in the schema store https://www.schemastore.org/json/ to provide YAML linting.

Work

It would be nice to have our devfile v2 schema onboarded to https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catalog.json. We should ensure that the devfile v1 and v2 can coexist and their corresponding linting applied as per the devfile version.

Until then the workaround is to overwrite it in the YAML extension settings manually:
Screen Shot 2021-05-10 at 3 29 39 PM

Stretch Goal

Ideally, we would also like to provide semantic validation with the extension. Since these semantic validation are not enforced by the schema validation, it is not covered by the existing extension. We should research if this can be adopted in the current extension repo or if a new VS Code extension is to be developed for providing such UX.

Metadata

Metadata

Assignees

Labels

studentIdentified work that the students can work on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions