Skip to content

Harden OData string filter serialization - #49

Merged
wilsonfreitas merged 1 commit into
project-health-hardeningfrom
hardening/32-escape-odata-string-filters
Jun 14, 2026
Merged

Harden OData string filter serialization#49
wilsonfreitas merged 1 commit into
project-health-hardeningfrom
hardening/32-escape-odata-string-filters

Conversation

@wilsonfreitas

Copy link
Copy Markdown
Owner

Summary

  • add typed OData filter literal serialization
  • escape apostrophes in string filter values using OData single-quote escaping
  • raise ODataError for unsupported or malformed filter values
  • add focused tests for string escaping, dates, decimals, ints, and invalid inputs

Fixes #32

Verification

  • uv run pytest -m "not integration" (137 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 3165c34 into project-health-hardening Jun 14, 2026
9 checks passed
@wilsonfreitas
wilsonfreitas deleted the hardening/32-escape-odata-string-filters branch June 14, 2026 20:29
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