allow arbitary types
See original GitHub issueRemove the exception pydantic.exceptions.ConfigError: no validator found for <class 'Foobar'>
and just require that any value provided is an instance of Foobar
.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Model Config - pydantic
... whether to allow arbitrary user types for fields (they are validated simply by checking if the value is an instance of the...
Read more >"[...] see `arbitrary_types_allowed` in Config" error message ...
The docs discuss arbitrary types and dataclass , but only in the context where a BaseModel validates an stdlib dataclass .
Read more >NSAllowsArbitraryLoads | Apple Developer Documentation
NSAllowsArbitraryLoads. A Boolean value indicating whether App Transport Security restrictions are disabled for all network connections. iOS 9.0+ ...
Read more >Allow arbitrary properties in class Typescript types
I've created a generic class in Typescript to extend objects starting from one passed in the constructor (through a Proxy, which will be ......
Read more >typing — Support for type hints — Python 3.11.1 documentation
PEP 604: Allow writing union types as X | Y. Introducing types. ... Introducing Self. PEP 675: Arbitrary Literal String Type. Introducing LiteralString....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
please read the documentation.
@mr-bjerre A ctrl+f for
arbitrary_types_allowed
on the pydantic docs should get you to the right place.Here’s an demonstration that I believe should work (not tested):