typesystem
typesystem copied to clipboard
Data validation, serialization, deserialization & form rendering. 🔢
Hi. I found a subtle bug in the `__init__` parameters of Object type. Then i shared the bug at the community discussions  and i got the answer to make...
import apistar import yaml import json from apistar import Link from typesystem import to_json_schema def get_link(link: Link): _data = {} for field in link.fields: _data[field.name] = to_json_schema(field.schema) return _data #_data[link.fields[1].name]...
- #115 #116 file field - #128 @aminalaee , docs build failed.
* We'll want to mark up our error messages as translatable strings. * Support an `errors = {}` argument for overriding the error strings. * Support `errors` as an attribute...
Would it be possible for the `Choice` class to include a list of acceptable choices in the validation error output? Here is a snippet doing this using subclassing. ```python import...
Hello. Is there a way to create a typesystem class one of the attributes to be represented in HTML forms as Radiobutton?  For now I use Choice but Radiobutton...
I'm using JSON schema with [React JSONSchema Forms](https://github.com/rjsf-team/react-jsonschema-form) to create forms automatically. Currently, `typesystem` doesn't emit metadata like `title` or `description` into the rendered schema for fields (or schema objects)....
hi, i may be wrong here, but the code in https://github.com/encode/hostedapi/blob/26e5ea6713f7d33433ca5ff962353fbffa6e88be/source/datasource.py is actually parsing sqlalchemy models and creating typesystem classes from them. can this functionality be made part of typesystem...