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 support for Annotated to struct type. #375

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Conversation

ptomecek
Copy link
Collaborator

Resolves #373
See test case for usage/impact.

Annotations are particularly useful for adding information about validation and serialization at a field level (or any other field level metadata). Their use is completely optional and they are ignored pretty much everywhere unless you call Struct.metadata(typed=True).

@ptomecek
Copy link
Collaborator Author

Re-opening #374 on a clean branch from main.

@ptomecek ptomecek merged commit 70f43cb into main Oct 15, 2024
29 checks passed
@ptomecek ptomecek deleted the pit/struct_annotation2 branch October 15, 2024 21:13
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.

Add support for Annotated structs
2 participants