-
Notifications
You must be signed in to change notification settings - Fork 22
Improve validation for public API inputs #43
Copy link
Copy link
Closed
Labels
area: currencyCurrency/PTAX scraping and exchange-rate APICurrency/PTAX scraping and exchange-rate APIarea: odataOData service discovery, metadata, query building, and endpointsOData service discovery, metadata, query building, and endpointsarea: sgsSGS time series APISGS time series APIpriority: mediumModerate urgency or impactModerate urgency or impacttype: refactorInternal refactoring without intended feature changesInternal refactoring without intended feature changes
Milestone
Description
Metadata
Metadata
Assignees
Labels
area: currencyCurrency/PTAX scraping and exchange-rate APICurrency/PTAX scraping and exchange-rate APIarea: odataOData service discovery, metadata, query building, and endpointsOData service discovery, metadata, query building, and endpointsarea: sgsSGS time series APISGS time series APIpriority: mediumModerate urgency or impactModerate urgency or impacttype: refactorInternal refactoring without intended feature changesInternal refactoring without intended feature changes
Context
Several invalid inputs currently fail late or with indirect errors. Examples include empty SGS code lists, unsupported
outputvalues, invalid currencysideorgroupby, regional economy mode values, and unsupported date inputs.Scope
Add early validation for public API inputs and align docstrings with accepted types.
Branching
Create the implementation branch from
project-health-hardeningand merge the fix back intoproject-health-hardeningbefore any merge tomain.Acceptance Criteria
ValueErroror project exceptions.uv run pytest -m "not integration", Ruff, and mypy pass.