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 model_type to validators #1597

Closed

Conversation

dennispg
Copy link

@dennispg dennispg commented Jan 8, 2025

Change Summary

In the same way that field_name is provided in ValidationInfo, this change will expose model_type as well.

Related issue number

pydantic/pydantic#11104

Checklist

  • Unit tests for the changes exist
  • Documentation reflects the changes where applicable
  • Pydantic tests pass with this pydantic-core (except for expected changes)
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@dennispg dennispg changed the title Add model_type to validators add model_type to validators Jan 8, 2025
Copy link

codspeed-hq bot commented Jan 8, 2025

CodSpeed Performance Report

Merging #1597 will not alter performance

Comparing dennispg:feat/add_model_type_to_validators (8df178d) with main (e7c5dc7)

Summary

✅ 157 untouched benchmarks

@Viicos
Copy link
Member

Viicos commented Jan 8, 2025

Closing as per pydantic/pydantic#11104 (comment).

@Viicos Viicos closed this Jan 8, 2025
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.

2 participants