typesystem
typesystem copied to clipboard
Data validation, serialization, deserialization & form rendering. 🔢
Currently datetimes are supported by specifying the type as `"datetime"` in a schema. This seems to be incompatible with the JSON schema and OpenAPI specifications, which state it should be...
Couldn't find a similar request sifting through the issues, but I think it would be pretty cool to have cross field and conditional validation. I don't know what the interface...
I'm using typesystem to implement a client for an HTTP API, and it's almost perfect for the jobs of constructing payloads to send and parsing payloads that have been received....
Is there a way to create schemes with dynamic Choice fields? E.g. I want to render a form where the user is supposed to select from his existing objects. The...
Hey, I was fiddling with [composite data types](https://www.encode.io/typesystem/fields/#composite-data-types), in particular with `Reference` to implement nested schemas, and there seems to be an issue with how arrays and objects of references...
I've copy-pasted ["Tokenized Errors" example][1] from documentation to `example.py`: ``` $ cat example.py ``` ```python import typesystem class Config(typesystem.Schema): num_worker_processes = typesystem.Integer() enable_auto_reload = typesystem.Boolean() text = '''{ "num_worker_processes": "x",...
Eg: 1. Use a schema class, but just instantiate a plain dict. 2. Use a schema class, but instantiate a different type. (Eg. seperate schema from model class)
hey, i'm wondering what made you decide to use a classmethod for `Schema.validate()` which then returns an _instance_ of the schema. i am wondering how this would work nicely when...