Skip to content

Commit b22ef6c

Browse files
authored
feat(acp-nats): add ext_method handler (#18)
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
1 parent 49e5656 commit b22ef6c

9 files changed

Lines changed: 587 additions & 24 deletions

File tree

rsworkspace/crates/AGENTS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Prefer domain-specific value objects over primitives (e.g. `AcpPrefix` not `String`). Each type's factory must guarantee correctness at construction—invalid instances should be unrepresentable. Validate per-type, not per-aggregate: avoid validating unrelated fields together in a single constructor.
22

3+
When validating strings for NATS subjects or domain constraints, introduce a value object in its own file (e.g. `ext_method_name.rs`, `session_id.rs`) rather than a standalone `validate_*` function or adding it to `config.rs`. The value object's constructor performs validation; invalid instances are unrepresentable.
4+
35
You must use the `test-support` feature to share test helpers between crates.
46
Prefer one trait per operation over a single trait with multiple operations.
57

0 commit comments

Comments
 (0)