Skip to content

fix(pattern): route schema violations#5

Merged
chickendreanso merged 3 commits intomainfrom
fix/schema-violation-error-routing
Feb 27, 2026
Merged

fix(pattern): route schema violations#5
chickendreanso merged 3 commits intomainfrom
fix/schema-violation-error-routing

Conversation

@chickendreanso
Copy link
Collaborator

Summary

  • compile-pattern schema errors were thrown as ExceptionInfo, caught by remote/execute's generic catch as :execution-error (HTTP 500)
  • Schema violations should produce :schema-violation (HTTP 403) per the wire protocol spec
  • compile-pattern now returns (constantly (fail ...)) with :matcher-type :schema — a fn that always produces MatchFailure
  • No changes to remote/http.cljc — the existing match-failure->error path handles it automatically

@chickendreanso chickendreanso self-assigned this Feb 26, 2026
@chickendreanso chickendreanso merged commit 7e47020 into main Feb 27, 2026
2 checks passed
@chickendreanso chickendreanso deleted the fix/schema-violation-error-routing branch February 27, 2026 02:12
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.

2 participants