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

Make unrequired field during on serialization #2330

Closed
rayandu924 opened this issue Nov 18, 2024 · 3 comments
Closed

Make unrequired field during on serialization #2330

rayandu924 opened this issue Nov 18, 2024 · 3 comments
Labels

Comments

@rayandu924
Copy link

In the load function, can we add the opposite of the partial argument to make fields required ?

@lafrech
Copy link
Member

lafrech commented Nov 18, 2024

No. partial makes all fields not required. There is no equivalent argument to make all or some fields required at load time.

@rayandu924
Copy link
Author

Could this feature be considered for a future release?

@sloria
Copy link
Member

sloria commented Jan 3, 2025

i don't think the use case warrants added API. you can declare a separate schema with the fields that you need to be required

@sloria sloria closed this as completed Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants