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 examples for custom serializers in API docs #8234

Closed
sydney-runkle opened this issue Nov 27, 2023 · 5 comments
Closed

Add examples for custom serializers in API docs #8234

sydney-runkle opened this issue Nov 27, 2023 · 5 comments

Comments

@sydney-runkle
Copy link
Member

For PlainSerializer, model_serializer, and field_serializer.

@debakarr
Copy link

What about the documentation here: https://docs.pydantic.dev/latest/concepts/serialization/#custom-serializers

@sydney-runkle
Copy link
Member Author

@debakarr,

Right, but we want to have examples in the API docs as well

@hungtsetse
Copy link
Contributor

@sydney-runkle,

I've opened a PR and I managed to document examples consistently for 3 of them.
Hope it make sense.

@sydney-runkle
Copy link
Member Author

Also, let's add an example for WrapSerializer to round out the additions to functional_serializers.py.

@sydney-runkle
Copy link
Member Author

Closed by #8546

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants