Skip to content

fix: accept string bulk update warning messages#181

Merged
btoron merged 1 commit into
btoron:masterfrom
WilliamK112:fix/bulk-update-warning-message
Jun 17, 2026
Merged

fix: accept string bulk update warning messages#181
btoron merged 1 commit into
btoron:masterfrom
WilliamK112:fix/bulk-update-warning-message

Conversation

@WilliamK112

Copy link
Copy Markdown
Contributor

Summary

  • Change BulkUpdateWarning.message from Optional[int] to Optional[str] so OFS warning text validates correctly.
  • Add a no-network regression test for a BulkUpdateResponse carrying a string warning message.

Fixes #178.

Validation

  • uv run --group dev pytest tests/test_model.py::test_bulk_update_response_accepts_string_warning_message -q
  • uv run --group dev ruff check ofsc/models/__init__.py tests/test_model.py
  • uv run --group dev ruff format --check ofsc/models/__init__.py tests/test_model.py
  • git diff --check

@btoron btoron merged commit 56ded86 into btoron:master Jun 17, 2026
2 checks passed
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.

[BUG]: BulkUpdateWarning.message typed as int but API returns a string

3 participants