Skip to content

test(modpoll-wot): publish rejection vectors for other implementations (WOT-06) - #154

Merged
gavinying merged 3 commits into
v2from
wot-06-rejection-vectors
Nov 16, 2026
Merged

gavinying merged 3 commits into
v2from
wot-06-rejection-vectors

Conversation

@gavinying

Copy link
Copy Markdown
Collaborator

An implementation that accepts or stores Thing Models without modpoll-wot, such as the ModioHub website, must refuse what the loader refuses. Until now only the fingerprints had shared vectors, so the website could save a Thing Model that the tools cannot load (WOT-06).

What changes

  • tests/fixtures/conformance.rejections.json: 60 vectors. Each one is a JSON Patch (RFC 6902, add, replace and remove only) applied to conformance.tm.json, with the name of the rule that refuses the result. They cover 36 semantic rules of instantiate (codec and quantity, byte order, media type parameters, operations and read/write Forms, property types, acquisition groups, placeholders, root features) and a few refusals of the bundled schemas.
  • tests/test_rejections.py: the unchanged model is accepted; every vector is refused with the answer of its own rule, both unbound and with a TCP host; every rule has a vector.
  • profile.md: describes the vectors and the two differences that cannot be expressed as vectors (duplicate keys and an integer written as 1.0).

No package code changes, so no release is needed for this alone. The vectors ride with the next modpoll-wot release.

Verification

  • mise run check in packages/modpoll-wot passes.
  • A JavaScript port of the rules in the website refuses all 60 vectors; 49 give the same message as the loader and the other 11 name the same cause in the words of a different schema validator or of a website rule.

@gavinying
gavinying merged commit d9c5994 into v2 Nov 16, 2026
22 checks passed
@gavinying
gavinying deleted the wot-06-rejection-vectors branch November 16, 2026 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant