Repository navigation
MAINT: Remove the deprecated converter_ids field from AddMessageRequest - #4430
Merged
Roman Lutz (romanlutz) merged 4 commits intoNov 21, 2026
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified for the removal of the deprecated top-level converter_ids field.
No open issues 🎉
What changed in this PR
Removes the deprecated top-level converter_ids field from the message-send API for 1.3.0, addressing #4392. Nested converter IDs, preview requests, and applied-converter metadata remain unchanged.
Changes:
- Rejects legacy input with HTTP 422 and guidance to use
request_converter_configurations, including empty lists andnull. - Removes legacy converter resolution, the frontend field, and outdated route documentation.
- Updates tests to cover rejection and retain structured-configuration validation.
| File | Description |
|---|---|
tests/unit/backend/test_message_send_service.py |
Removes obsolete legacy-converter compatibility tests. |
tests/unit/backend/test_common_models.py |
Removes the obsolete top-level converter size-limit case. |
tests/unit/backend/test_api_routes.py |
Adds legacy-input rejection coverage and updates validation cases. |
pyrit/backend/services/message_send_service.py |
Removes legacy converter resolution and its deprecation warning. |
pyrit/backend/routes/attacks.py |
Removes the deprecated pipeline description from the route docstring. |
pyrit/backend/models/attacks.py |
Removes the field and explicitly rejects requests containing it. |
frontend/src/types/index.ts |
Removes the field from the frontend request interface. |
Review effort: Balanced
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Roman Lutz (romanlutz)
approved these changes
Nov 21, 2026
Contributor
Author
|
Thanks for the review, the test cleanup and the merge, Roman Lutz (@romanlutz). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Removes the deprecated top-level
converter_idsfield fromAddMessageRequest, due in 1.3.0, and makes clients that still send it fail loudly. Closes #4392._validate_converter_configurations. Amode="before"validator rejects any request that still has a top-levelconverter_idskey (HTTP 422) with a message pointing torequest_converter_configurations, so an old client can't have its message sent without converters.converter_idsonConverterConfigurationRequestand on the preview request, andapplied_converter_ids, are untouched._resolve_request_converter_configsloses its legacy branch and the warning. I kept it as a one-line method rather than inlining it, because a test intest_message_send_service.pypatches request and response resolution separately through it.AddMessageRequesttype no longer mention the field.converter_ids(a list,[]ornull) returns 422 without reaching the service, switches thesend=Falseroute test torequest_converter_configurations, and drops theconverter_idscases from the conflict and size-limit tests.frontend/e2e/converters.spec.tsno longer falls back to a top-levelconverter_ids.