Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix APIException detail types nesting #438

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

intgr
Copy link
Contributor

@intgr intgr commented Jun 27, 2023

The _Detail, _ErrorFullDetails and ValidationError.detail types allow arbitrary nesting, but this was omitted by mistake from the original pull request #387.

Made these types recursive.

The other related types _APIExceptionInput and _ErrorCodes were already recursive.

Related issues

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated: let's remove typecheck_tests ;)

@intgr
Copy link
Contributor Author

intgr commented Jun 27, 2023

Agreed, I'll open a PR for that.

The `_Detail`, `_ErrorFullDetails` and `ValidationError.detail` types allow arbitrary nesting, but this was omitted by mistake from the original pull request.

The other related types `_APIExceptionInput` and `_ErrorCodes` were already recursive.
@intgr intgr force-pushed the fix-error-detail-nesting branch from 00b0387 to 24644ca Compare June 27, 2023 15:43
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sobolevn sobolevn merged commit d619e26 into typeddjango:master Jun 27, 2023
@intgr intgr deleted the fix-error-detail-nesting branch June 27, 2023 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants