Skip to content

Commit 84c3bd2

Browse files
committed
Fix tests
1 parent ab48ce8 commit 84c3bd2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/asyncapi_python/contrib/wire/amqp/resolver.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,14 @@ def resolve_routing_key_binding(
280280
"""Resolve AMQP routing key binding configuration for pub/sub patterns
281281
282282
For routing key bindings:
283-
- Parameters are optional (can be empty dict)
284-
- Missing parameters are replaced with '*' wildcard
283+
- All channel-defined parameters must be provided (strict validation)
285284
- Parameter values can explicitly contain wildcards ('*' or '#')
286-
- No strict validation - this is for topic exchange pattern matching
285+
- Wildcards are allowed for topic exchange pattern matching
287286
"""
288287

288+
# Strict validation: all parameters required, exact match
289+
validate_parameters_strict(channel, param_values)
290+
289291
# Determine exchange name and type
290292
# For exchange name, we need concrete values (no wildcards)
291293
# If param_values has placeholders, use them; otherwise use literal exchange name

0 commit comments

Comments
 (0)