typesystem icon indicating copy to clipboard operation
typesystem copied to clipboard

Data validation, serialization, deserialization & form rendering. 🔢

Results 30 typesystem issues
Sort by recently updated
recently updated
newest added

i admit i do not understand completely what's going on, but the `Field._creation_counter` seems like a hack to me, and i wonder why it's necessary? since python 3.6, dictionaries retain...

E.g. allow back-references or cyclical references. We could register schema class names whenever Schema is subclassed, which would allow us to do this: `artist = typesystem.Nested('Artist')` A lazy import string...

* `required` should not just hardcode-overwrite the error text. * `invalid_key` should reference the key, not the dict. * `invalid_property` should reference the key, not the value.

* Partial serialization. * Use schema class to serialize *other* instances.

For rendering the initial blank option in an HTML ``

1. Support a validator, or list of validators: `date_of_travel = Date(validator=may_not_be_in_past)` 2. Support validator methods: ```python @classmethod def validate_date_of_travel(cls, value): ... ``` 3. Support a `validate_all` or something similar.

Database validation needs an `async`/`await` interface. `ValidationResult` should be an awaitable, and should error if `__bool__` or `__iter__` are called, and it has awaitable validators, and has not yet been...

We should support the following: * `precision="minute"` * `precision="second"` * `precision="millisecond"` * `precision="microsecond"` * `precision="0.01"` # Decimal.quantize style