Skip to content

[DEV-15494] Correctly format Pydantic error messages#4691

Merged
aguest-kc merged 5 commits into
qatfrom
fix/dev-15494-return-422-on-pydantic-validation-failure
Jul 14, 2026
Merged

[DEV-15494] Correctly format Pydantic error messages#4691
aguest-kc merged 5 commits into
qatfrom
fix/dev-15494-return-422-on-pydantic-validation-failure

Conversation

@aguest-kc

@aguest-kc aguest-kc commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Description:

Some filters can cause the /api/v2/search/spending_by_award/ endpoint to return a 500 response code instead of a 422 response code. This is due to a key in the Pydantic response model not existing in some cases.

Technical Details:

Requirements for PR Merge:

  1. Data validation completed (examples listed below)
  2. Jira Ticket(s)
    1. DEV-15494

Explain N/A in above checklist:

@aguest-kc aguest-kc added the ready for review [PR] ready to be reviewed label Jul 13, 2026
@aguest-kc aguest-kc merged commit 65dc051 into qat Jul 14, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for review [PR] ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants