Validators
pyvider.rpcplugin.config.validators
¶
Validation functions for RPC Plugin configuration values.
This module provides validators for configuration fields that require custom validation logic beyond simple type checking.
Classes¶
Functions¶
validate_protocol_versions_list
¶
Validate that all protocol versions in the list are supported.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | list[int]
|
Either a comma-separated string or a list of integers |
required |
Returns:
| Type | Description |
|---|---|
list[int]
|
List of validated protocol version integers |
Raises:
| Type | Description |
|---|---|
ValidationError
|
If any protocol version is not supported |
Source code in pyvider/rpcplugin/config/validators.py
validate_transport_list
¶
Validate that all transports in the list are supported.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | list[str]
|
Either a comma-separated string or a list of strings |
required |
Returns:
| Type | Description |
|---|---|
list[str]
|
List of validated transport strings |
Raises:
| Type | Description |
|---|---|
ValidationError
|
If any transport is not supported |