jsonmodels icon indicating copy to clipboard operation
jsonmodels copied to clipboard

jsonmodels is library to make it easier for you to deal with structures that are converted to, or read from JSON.

Results 51 jsonmodels issues
Sort by recently updated
recently updated
newest added

Added class name as object title in json schema. Really useful when creating forms from schema (especially in lists).

Hi, thanks for this nice lib. **Question 1**: Am I correct in assuming that to create a field for any type, I'll have to subclass `fields.BaseField`? See `AnyField` below. ```python...

Even though the generated JSON schema contains "additionalProperties: False" for every structure, actually setting a property that's not in the model does not cause a validation error. It should. in...

"Bug": copy.deepcopy is not possible. ```python from jsonmodels import models, fields, validators import copy class A(models.Base): x = fields.IntField(required=True) a1 = A(x = 1) a2 = copy.deepcopy(a1) print(a1.x) print(a2.x) #...

e.g. message is a list and it's child conflict is list too. The tool can't parse and valid it right. { "DataType": "Test", "message": [{ "vid": 11, "vendor": "123213", "conflict":...

Hi, I would like the `__init__` and `populate` methods [ref](https://github.com/beregond/jsonmodels/blob/master/jsonmodels/models.py#L32), to have the following signature: ```python def __init__(self, throw_on_unknown_keyword = False, **kwargs): # ... def populate(self, throw_on_unknown_keyword = False, **values):...

Current implementation of validation raises the `jsonmodels.errors.ValidationError` as soon as the first error is encountered. ```py >>> from jsonmodels import models, fields, validators >>> class Person(models.Base): ... name = fields.StringField(required=True,...

Basically, there is no way to get rid of a ListField element in output json. For other fields, you set them to None and it will be removed from output...

The current version of the documentation on Read The Docs is for 2.2.

I work with [json-editor](https://github.com/jdorn/json-editor) to generate forms based on json schemas. We write business logic scripts linked to those forms in javascript. JSON schemas and scripts are written by business...