warlock icon indicating copy to clipboard operation
warlock copied to clipboard

Results 12 warlock issues
Sort by recently updated
recently updated
newest added

This sets the value of properties to default value if one is given in the schema and none is specified manually. This should fix #57.

Can JSON Created Classes be Persisted to Disk or Writing to .py Files? Thank you,

Hello, is there a way to enforce the rfc3339 date-time format (e.g. '2020-07-02T07:27:15+02:00')? Currently this property would allow any string. 'time': {'type': 'string', 'format': 'date-time'} Thanks in advance, Patrick

enhancement

Got KeyError referring to schema object with default value: ``` import warlock schema = { "title": "Message", "type": "object", "properties": { "sender": { "title": "Sender", "type": "string" }, "trace": {...

enhancement

Added a convenience capability to **read** with dot notation for nested dicts and lists in model. Example: ``` >>> d = {'level1':{'level2':[{'leve3':'a'},{'level3':'b'}]}} >>> f = warlock.model_factory({}) >>> m = f(d)...

Hello, If a JSON Schema is for a simple JSON object (string/number/integer), warlock will fail to bind and we can't instantiate object. For example, given the following JSON Schema: ```...

I am using MongoDB and since MongoDB adds a "_id" field before saving an element to the Database, I made a Base class as follows: ```python mongo_db_base_schema = { 'type':...