Repository navigation
Check Party request, response and event payload bodies and success statuses against the BIAN schemas, with ADR-cited deviations (roadmap 1.14) - #134
Merged
Conversation
…r Party Reference Data Directory Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…atuses against the BIAN schemas, with ADR-cited deviations and the catalogue driving the declarations (roadmap 1.14) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Roadmap phase
Phase: 1.14 Conformance
Planning package:
specs/2026-11-09-party-bian-conformance/Closes #39
Summary
Since 0.14, Party Reference Data Directory's routes have been checked against its BIAN v14 specification: each route is a BIAN operation with the spec's method, and
RetrieveisGET. This PR completes "conformance for the implemented subset" by also checking what goes over the wire.Harness (
tests/RimBank.Conformance.Testing, ADR 0037)JsonSchemaExporterfrom the host's ownJsonOptions. BIAN's generated enum wrappers accept a plain string (ADR 0024), andJsonElementpassthroughs accept any JSON.HTTPError(ADR 0015).ConformanceDeviationrow: the operation or channel, the JSON path, and a reason that must cite an ADR. A row that no longer occurs fails, and so does a row without an ADR.PartyReferenceDataDirectoryCataloguemoved fromRimBank.Conformance.TeststoRimBank.Conformance.Testing/Catalogues/. The Party conformance tests declare their operations and events from its rows that are not deferred, instead of a hand-written list.200of the Control Record's Register, Update, Control, Request, Execute and Exchange points toBadRequest. The harness uses each operation's own<Action><Record>Responseinstead.'application/json:', with a stray colon.Party (
tests/RimBank.Api.Tests)PartyReferenceDataDirectoryConformanceTestsnow runs three checks against the real host: routes, bodies and statuses, and event payloads.PartyReferenceDataDirectoryConformanceDeviations:RefreshDate(ADR 0024)ExchangeActionType(ADR 0028)Countryobject and contact-point subtypes (ADR 0030, ADR 0031)CompanyOfficerRoleas a plain string (ADR 0034)Docs: new ADR 0037. Pointers added in ADR 0020, ADR 0024 (the catalogue's new location) and ADR 0036. Updated tech-stack §3.3 and §9, CONTRIBUTING "BIAN conformance", and the roadmap (1.14 ticked).
No commands or queries were added or changed. This phase only adds tests.
Definition of done
RimBank.Conformance.Testingnow references Party.PublishedLanguage; it is not a production assemblydocs/adr/for any significant or BIAN-interpretation decision: ADR 0037Validation
Checks from
validation.md:FakeContextBodyConformanceTests), each failing with a message that names the operation or channel and the JSON path:'application/json:'request body, the fallback for a200wired toBadRequest, the Retrieve response, and every channel payload.RimBank.Conformance.TeststoRimBank.Conformance.Testing). The CI restore on Linux confirms it.Review focus
<Record>Idis allowed". It is more verbose, but every difference traces to an ADR. Is the grouping inPartyReferenceDataDirectoryConformanceDeviationsreadable enough?200→BadRequestwiring, which uses the operation's own<Action><Record>Response. It is a reading of a spec bug, recorded in ADR 0037.format,requiredandenumvalues are not compared, andintegeris accepted where BIAN declaresnumber..PublishedLanguage. Stage 2 adds its own catalogue next to it.requirements.md(how many mismatches exist): resolved. There were 63, all already decided in ADRs, and none needed a model change.🤖 Generated with Claude Code