Skip to content

Validate public API inputs early#53

Merged
wilsonfreitas merged 1 commit into
project-health-hardeningfrom
hardening/43-validate-public-api-inputs
Jun 14, 2026
Merged

Validate public API inputs early#53
wilsonfreitas merged 1 commit into
project-health-hardeningfrom
hardening/43-validate-public-api-inputs

Conversation

@wilsonfreitas

Copy link
Copy Markdown
Owner

Summary

  • validate currency side/groupby/output, dates, and symbol lists before HTTP requests
  • validate SGS output, last, code inputs, and single-code JSON entry points before HTTP requests
  • harden regional economy location/mode validation while preserving state-first handling for ambiguous all-state requests

Fixes #43

Verification

  • uv run pytest -m "not integration" (168 passed, 11 deselected)
  • uv run ruff check bcb/ tests/
  • uv run ruff format --check bcb/ tests/
  • uv run mypy bcb/
  • uv run --group docs sphinx-build -b html docs docs/_build/html

@wilsonfreitas
wilsonfreitas merged commit 7c908f1 into project-health-hardening Jun 14, 2026
9 checks passed
@wilsonfreitas
wilsonfreitas deleted the hardening/43-validate-public-api-inputs branch June 14, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant