Skip to content

[Junie]: Junie Old HTTPValidationError and ValidationError OpenAPI entry#4

Open
junie-eap[bot] wants to merge 1 commit intomasterfrom
junie-issue-3
Open

[Junie]: Junie Old HTTPValidationError and ValidationError OpenAPI entry#4
junie-eap[bot] wants to merge 1 commit intomasterfrom
junie-issue-3

Conversation

@junie-eap
Copy link
Copy Markdown

@junie-eap junie-eap bot commented Apr 28, 2025

📌 Hey! This PR was made for you with Junie, the coding agent by JetBrains Early Access Preview

It's still learning, developing, and might make mistakes. Please make sure you review the changes before you accept them.
We’d love your feedback — join our Discord to share bugs, ideas: here.

📝 Original Issue Description

  Issue task:
  ### Privileged issue
  • I'm @tiangolo or he asked me directly to create an issue here.

Issue Content

Issue Content
Those lines need to be updated:

https://github.com/tiangolo/fastapi/blob/36c26677682c4245183912e00fc057c05cc6cf7a/fastapi/openapi/utils.py#L36-L61

They reflect how it was before 0.100.0, but with Pydantic V2, that's no longer true.

  Issue comments:
  [null] Hey, it’s Junie by JetBrains! I started processing your [request](https://github.com/melotria/fastapi/actions/runs/14703998975) 🚀

[null] Oh no! Task execution failed. (Unknown error).
Please check the action for more details.

Report the issue on our Discord and help us improve Discord.

[Alexander Prendota] @jetbrains-junie fix

📊 Junie Summary

The validation_error_definition in fastapi/openapi/utils.py was updated to include an "input" field that aligns with Pydantic V2's error structure while maintaining backward compatibility with Pydantic V1. The changes were submitted without any errors detected. All relevant tests have also been confirmed to pass successfully, indicating the modifications are effective.

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.

0 participants