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

Add checker for allow_null attr #688

Merged
merged 6 commits into from
Jul 18, 2022
Merged

Conversation

krectra
Copy link
Contributor

@krectra krectra commented Jan 6, 2021

fixes for error occurring on serpy serializers

instance_kwargs['x_nullable'] = True

if hasattr(field, 'allow_null'):
if field.allow_null:
Copy link

Choose a reason for hiding this comment

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

you can simplify these two ifs:

if getattr(field, 'allow_null', None):
    instance_kwargs['x_nullable'] = True

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated. thanks.

@EralpBay
Copy link

Please merge this 👍 it's basically not usable with Serpy Serializers. #687

@derneuere
Copy link

Hey, would it be possible to merge this pull request or are there any other issues that need to be fixed?

@pollaro
Copy link

pollaro commented Aug 27, 2021

@d3QUone Can we get this merged? My code can't pass OpenAPI2.0 without it

@d3QUone
Copy link

d3QUone commented Sep 8, 2021

I think yes, it's fine. But only project collaborators have access to merge..

@rlrojasm
Copy link

Hi It's still pending to merge @krectra could you take a look at it!. Thanks

@krectra
Copy link
Contributor Author

krectra commented Mar 7, 2022

Hi It's still pending to merge @krectra could you take a look at it!. Thanks

Pending workflow approval

@sabyashaikh
Copy link

sabyashaikh commented Apr 26, 2022

Hi It's still pending to merge @krectra could you take a look at it!. Thanks

Pending workflow approval

Hello, any update on this issue? @axnsan12

@JoelLefkowitz JoelLefkowitz changed the base branch from master to 1.21.x July 17, 2022 17:15
@JoelLefkowitz JoelLefkowitz added bug Bug report/fix enhancement 1.21.x Release target in 1.21.x labels Jul 17, 2022
@JoelLefkowitz JoelLefkowitz merged commit cb03608 into axnsan12:1.21.x Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.21.x Release target in 1.21.x bug Bug report/fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants