Skip to content

Schema Linting errors #1109

Open
@Karan-Palan

Description

@Karan-Palan

I tried this:

I used the jsonschema cli to lint the workflow.yaml:

This happened:

Image

I expected this:

I expect the schema to pass all the linting checks

Is there a workaround?

There is an autofix feature in the cli, however as of now it is only works with json files. The schema can be fixed manually as of now

Anything else?

I, alongside my mentor Juan are defining JSON Schema linting rules here - https://github.com/Karan-Palan/JSON-Schema-Linting and implementing autofix for the autofixable rules - https://github.com/sourcemeta/jsonschema/blob/main/docs/lint.markdown.

If helpful, I'd love to integrate the linter with the project so you can get all updates and write better schemas!

Area(s)

Schema

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.name: Bug Report 🐞

Metadata

Metadata

Assignees

Labels

area: specChanges in the Specificationchange: fixSomething isn't working. Impacts in a minor version change.type: bug

Type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions