Diogo Baeder de Paula Pinto
a08b62035e
Properly formatting UUID if value to be unmarshalled is already a UUID.
...
Before this change, if a UUID instance got received as value in the
Schema, it was breaking the unmarshal because UUID instances can't be
used as values to instantiate other UUIDs.
2019-02-28 18:25:22 -03:00
Artur Maciag
a533a080cc
byte string format
2019-02-27 00:59:45 +00:00
Diogo Baeder de Paula Pinto
dadf075670
Accepting uuid string format and validating accordingly.
2019-02-26 02:57:50 -03:00
Ben Howes
3d2926871b
Dont use value for determining any type
...
otherwise Falsy values are not valid types
2018-12-11 14:49:13 +00:00
Domen Kožar
399602f013
sync master changes with exception refactoring
2018-09-13 11:59:44 +01:00
Domen Kožar
17ea740b7b
Add field name to all property errors
2018-09-13 10:58:36 +01:00
Domen Kožar
6bdd1a6756
Rewrok exception handling
...
Main motivation behind this change is to be able to catch exceptions
as per raise_for_errors() helpers, but to inspect state of exceptions
instead of just getting a rendered string. This allows rendering
exceptions into JSON, for example.
2018-09-13 10:58:35 +01:00
Domen Kožar
89a53f6edc
review feedback
2018-09-13 10:58:33 +01:00
Domen Kožar
64628d1cc9
Sketch out custom formatters design
2018-09-13 10:41:34 +01:00
8db5c08ed1
Add support for additional validation properties
...
Add support for the following validation properties:
- multipleOf
- maximum
- exclusiveMaximum
- minimum
- exclusiveMinimum
- maxLength
- minLength
- pattern
- maxItems
- minItems
- uniqueItems
- maxProperties
- minProperties
Fixes #49
2018-09-09 00:30:38 -04:00
p1c2u
0cbbdb0232
Unmarshal any schema type
2018-08-23 09:29:36 +01:00
p1c2u
05b8a30091
Any schema type
2018-08-22 14:27:32 +01:00
Artur Maciag
82f32be1e7
String validation
2018-08-22 13:49:24 +01:00
Artur Maciag
e395b50558
Collection validation
2018-08-22 10:29:39 +01:00
Artur Maciag
3aaa3ceb8b
Separate type and structure validation
2018-08-22 10:05:15 +01:00
p1c2u
0915e94530
Object validation
2018-08-22 09:34:18 +01:00
Artur Maciag
f9a7472c92
Separate schema casting and validation
2018-08-17 18:35:21 +01:00
grktsh
d4f65a2ed2
Support unmarshaling string with format keyword
2018-08-17 13:25:12 +09:00
Konrad Cempura
b8c03d90f4
Python 2.7: Copy list using slice
2018-07-15 23:46:38 +02:00
Artur Maciag
78f55ee80f
Schema additional properties support
2018-05-30 11:20:35 +01:00
Artur Maciag
d87b60ade7
Schema format accepts any value
2018-05-30 09:41:34 +01:00
Artur Maciag
4c75f0f9b7
OneOf schema support
2018-05-25 16:50:09 +01:00
Artur Maciag
4e1a61aace
Exceptions restructure
2018-05-25 11:30:50 +01:00
Artur Maciag
734a4673f8
Schema objects restructure
2018-05-25 11:30:50 +01:00