validate_query
Validate SDMX query parameters against the 2.1 REST API specification and verify dimension codes before building the final URL.
Instructions
Validate SDMX query parameters before building the final URL.
Checks syntax according to SDMX 2.1 REST API specification.
Validates that dimension codes actually exist in the dataflow.
Args:
dataflow_id: The dataflow to validate against
key: The data key (dimensions separated by dots)
filters: Dictionary of dimension_id -> code (alternative to key)
start_period: Start of time range
end_period: End of time range
agency_id: The agency
endpoint: Optional endpoint key (e.g. "FBOS", "ECB") to target a
specific provider for this call only. Defaults to the session's
current endpoint.
Returns:
Validation results including any errors, warnings, and validated parameters
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| filters | No | ||
| endpoint | No | ||
| agency_id | No | ||
| end_period | No | ||
| dataflow_id | Yes | ||
| start_period | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key that was validated | |
| valid | Yes | Whether the query is valid | |
| errors | No | Validation errors | |
| warnings | No | Validation warnings | |
| suggestion | No | Suggestion for fixing issues | |
| dataflow_id | Yes | Dataflow being validated against | |
| invalid_codes | No | Invalid dimension codes if code validation was performed |