KEMBAR78
allow field_serializer('*') (fix #8990) by ornariece · Pull Request #9001 · pydantic/pydantic · GitHub
Skip to content

Conversation

@ornariece
Copy link
Contributor

@ornariece ornariece commented Mar 13, 2024

Change Summary

allow field_serializer('*') for defining a serializer for all fields in a model

Related issue number

fix #8990

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @davidhewitt

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 13, 2024

CodSpeed Performance Report

Merging #9001 will not alter performance

Comparing ornariece:field_serializer_all (707fd47) with main (18d39fe)

Summary

✅ 10 untouched benchmarks

@ornariece
Copy link
Contributor Author

please review @sydney-runkle

Copy link
Contributor

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

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

Left a bit of feedback. Thanks for your work on this :). And thanks for the tests!

@pydantic-hooky pydantic-hooky bot added awaiting author revision awaiting changes from the PR author and removed ready for review labels Mar 13, 2024
@pydantic-hooky pydantic-hooky bot assigned ornariece and unassigned davidhewitt Mar 13, 2024
Co-authored-by: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com>
Copy link
Contributor

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

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

@ornariece,

Looks great, but please fix the linting errors before we merge!

@ornariece
Copy link
Contributor Author

turns out the initial doc change was correct 😄

@sydney-runkle
Copy link
Contributor

@ornariece,

Hmm, I don't think it was -- I think you just needed to fix the whitespace... could you try that instead?

@ornariece
Copy link
Contributor Author

here's to hoping i checked everything properly this time! sorry for the trouble

@sydney-runkle
Copy link
Contributor

No worries at all. Looks great, thanks so much :).

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

Labels

awaiting author revision awaiting changes from the PR author relnotes-feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

field_serializer('*')

3 participants