ramses
ramses copied to clipboard
Does ramses support JSON data type?
As for new sqlalchemy supports JSON data type, I'm wondering if ramses supports this type. A quick test shows an error:
/ramses/models.py", line 212, in handle_model_generation
raise ValueError('{}: {}'.format(model_name, str(ex)))
ValueError: User: Unknown type: json
in my schema file I have:
"data": {
"type": ["string", "null"],
"_db_settings": {
"type": "json",
"required": false
}
}
I'm wondering anybody and help this issue?
I think "dict" is probably the closest type to "json".
you can get a complete list of supported type here: http://ramses.readthedocs.io/en/stable/fields.html#types