Skip to content

Feature/unify example match conditions - #13

Merged
mamonth merged 4 commits into
mainfrom
feature/unify-example-match-conditions
Sep 7, 2026
Merged

mamonth merged 4 commits into
mainfrom
feature/unify-example-match-conditions

Conversation

@mamonth

@mamonth mamonth commented Sep 7, 2026

Copy link
Copy Markdown
Owner

No description provided.

Extract the pure event subscription broker and interval scheduler into a
new internal/eventbus package so the coordinators have a real package
boundary and a public test seam, and de-complexify response selection,
request filtering and header resolution.

Fix the JSON-RPC over HTTP transport to always answer 200 (a mocked
non-2xx status is carried in X-Mock-Status), mount each RPC procedure's
own path so path parameters resolve through chi, lower the complexity
lint gates, and align the OpenAPI/AsyncAPI schemas, docs and OpenSpec
scenarios with the implementation.
Remove the async-only match wire field from POST /_mock/examples and make
conditions the single selector for every target kind. Async targets now map
conditions onto the existing x-mock-match extension (event/connection/reply
contexts), strict validation rejects a stale match field (RS.MAPI.37), and the
generated AddExampleRequest schema is regenerated from api/openapi.yaml as the
single source of truth via the new gen-control-schema tool. Update specs, docs,
and tests; archive the unify-example-match-conditions change.
TestIntegration_ConnectionTargeting and TestIntegration_ReceiveBuiltIn_Runtime
still sent the removed match wire field, which the unified conditions selector
now rejects with HTTP 400. Switch both to conditions (RS.MAPI.33, RS.MAPI.26).
@mamonth
mamonth merged commit 4c62cc3 into main Sep 7, 2026
7 checks passed
@mamonth
mamonth deleted the feature/unify-example-match-conditions branch September 7, 2026 15:48
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