feat: Add SeamHttpInvalidInputError.get_validation_error_messages - #616
Merged
Conversation
Port the getValidationErrorMessages interface from the JavaScript SDK. SeamHttpInvalidInputError now carries the validation_errors from the API error response and exposes get_validation_error_messages(param_name), which returns the messages for a request parameter or an empty list when that parameter has none. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012RfnESV5b57QDoxMggXdM9
razor-x
marked this pull request as ready for review
August 13, 2026 19:20
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.
Summary
This PR adds the ability to retrieve validation error messages from
SeamHttpInvalidInputErrorexceptions, making it easier for users to access detailed validation feedback from the API.Key Changes
Listto type imports inexceptions.py_validation_errorsattribute toSeamHttpInvalidInputErrorto store validation error details from the API responseget_validation_error_messages(param_name: str)method to retrieve validation error messages for a specific request parameterclient.pyto extract and passvalidation_errorsfrom the API error response toSeamHttpInvalidInputErrorImplementation Details
get_validation_error_messages()method returns a list of error messages for a given parameter name, or an empty list if the parameter has no validation errorsvalidation_errors[param_name]["_errors"]in the API responsehttps://claude.ai/code/session_012RfnESV5b57QDoxMggXdM9