Samuel Colvin

Results 1016 comments of Samuel Colvin

I'm afraid this is probably quite a challenging first task. How about something like #4675? It's still pretty hard and complicated, but not as wide ranging as this.

Yes, unless you use strict mode.

(added a few more examples in the above usage example) So the question is, what does `validate` return. Well, it has to depend on what it's called with: * if...

I agree with most of your examples. We should definitely make it explicit that we're return a new thing, specifically an instance of `Validate` With that a user could do...

nice little headache this, thanks :smile:. I'll think about it.

See #4850 which is somewhat related. I don't think we want to stop using `__dict__`, because: 1. We moved to using `__dict__` from `__values__` in the past because of the...

Pydantic-core allows a specific validator for extra data, we currently don't provide a way to set that in pydantic, but pr welcome either now or after V2 release - since...

Good catch, this is a bug in pydantic-core. Because the immediate field validator is not a `DefaultValidator`.

This is definitely a bug, thanks so much for reporting.

> @samuelcolvin Would you be open to adding `jsonschema` as a testing dependency for the sake of validating generated schemas? I like the idea, if for no other reason than...