Skip to content

Commit

Permalink
allow optional keys in endpoint config validation
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-ls authored and oberstet committed Jan 6, 2022
1 parent c3f25a1 commit fa9f2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autobahn/wamp/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _validate_endpoint(endpoint, check_native_endpoint=None):
raise ValueError('invalid type "{}" in endpoint'.format(endpoint['type']))

for k in endpoint.keys():
if k not in ['type', 'host', 'port', 'path', 'tls']:
if k not in ['type', 'host', 'port', 'path', 'tls', 'timeout', 'version']:
raise ValueError(
"Invalid key '{}' in endpoint configuration".format(k)
)
Expand Down

0 comments on commit fa9f2da

Please sign in to comment.