west icon indicating copy to clipboard operation
west copied to clipboard

Deprecate `pyKwalify` for YAML validation

Open pdgendt opened this issue 8 months ago • 2 comments

The pyKwalify project hasn't received updates since 2020 and the highest supported Python version is 3.9.

As an alternative, I propose moving to JSON schema

pdgendt avatar Apr 15 '25 14:04 pdgendt

Thanks for spotting and filing this! Do you have a rough idea of the extend of pyKwalify usage currently? I mean everywhere it's used for in west.

How different are the APIs?

marc-hb avatar Apr 16 '25 21:04 marc-hb

Thanks for spotting and filing this! Do you have a rough idea of the extend of pyKwalify usage currently? I mean everywhere it's used for in west.

It's used to validate manifest and command extension files. The changes required are limited, but as the schema is versioned in West, it might make sense to bump from currently 1.2 to 2.0? Even though it should be backwards compatible.

How different are the APIs?

The API is almost identical, there's a single validate function that throws an error if it's malformed. However the schema syntax is different.

pdgendt avatar Apr 17 '25 08:04 pdgendt