Debian Patches

Status for dt-schema/2025.08-1.1

Patch Description Author Forwarded Bugs Origin Last update
0001-Switch-to-jsonschema-4.18.patch Switch to jsonschema 4.18+
We've been stuck on jsonschema 4.17 because 4.18 changed in
non-compatible ways with how RefResolver worked. Upstream was not
willing to fix the issues claiming our usage was incorrect.

The RefResolver interface is deprecated anyways so it isn't really worth
the effort to fix or find a work-around when we need to move to the
Registry interface anyways.

In 4.17, the Draft2019-09 meta-schema was (silently) broken due to
'$recursiveRef' not being handled, so we were stuck using Draft7
validator in some places. Now those are all updated to Draft2019-09.

Setting '$schema' to our meta-schema seems to not be how extending
the meta-schema is supposed to be done. '$schema' is supposed to be
which dialect of json-schema we are using (Draft 2019-09) rather than
our extended meta-schema. Going against this seems to cause problems
with referencing the core schema within our schema, so that has been
dropped in favor of validating against both meta-schemas separately.
Further reworking of how our meta-schema is structured is needed.

4.18+ has been out for some time now and is what distros are packaging.
Also, 4.17 seems to be broken with python 3.14 and a fix by upstream
seems unlikely. So now is the time to switch.
Rob Herring <robh@kernel.org> no upstream, 7b9c4e8412eac6fbda24092ad0d3577e9437dfe3 2023-04-14
0002-Install-.yaml-files-from-meta-schemas-and-schemas.patch Install *.yaml files from meta-schemas and schemas
The Arch Linux package uses the following commands to build and install
the project:
$ python -m build --wheel --no-isolation
$ python -m installer --destdir="$pkgdir" dist/*.whl

The installed output in $pkgdir however does not contain the *.yaml
schemas from dtschema/meta-schemas and dtschema/schemas. Add setuptools
configuration so the *.yaml files are installed.
Martin Blumenstingl <martin.blumenstingl@googlemail.com> no upstream, 8d4887886b39f693b2066649547d168d09e3dc55 2026-01-10

All known versions for source package 'dt-schema'

Links