nuql 0.0.3__py3-none-any.whl → 0.0.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
nuql/resources/fields/field.py
CHANGED
@@ -96,7 +96,10 @@ class FieldBase:
|
|
96
96
|
value = self.default
|
97
97
|
|
98
98
|
# Serialise the value
|
99
|
-
|
99
|
+
if not isinstance(value, (type(None), resources.EmptyValue)):
|
100
|
+
value = self.serialise_internal(value, action, validator)
|
101
|
+
else:
|
102
|
+
value = None
|
100
103
|
|
101
104
|
# Validate required field
|
102
105
|
if self.required and action == 'create' and value is None:
|
@@ -43,7 +43,7 @@ nuql/generators/ulid.py,sha256=MuxmKQBPEBSqhlD4NPCnUrDgwgn82a0sTQISQ0iIYmM,194
|
|
43
43
|
nuql/generators/uuid.py,sha256=MoEQVxgEsqGlhpf4W-OuRiLKqNwRtE2NtS3eFTOc5lo,394
|
44
44
|
nuql/resources/__init__.py,sha256=8HRJ_H5yTdQtfeVZ29ikdbLQSPKiZRyNkoocQd5QtZ8,92
|
45
45
|
nuql/resources/fields/__init__.py,sha256=bajUBAvrK8kIMyb2vD_0NCwibRHOLo4Yoq1sac0Dobc,70
|
46
|
-
nuql/resources/fields/field.py,sha256=
|
46
|
+
nuql/resources/fields/field.py,sha256=5AjJbKxk1GwgP7nhMuZOPKQYFhlDTA9VrHeBF4mQcAA,5589
|
47
47
|
nuql/resources/fields/field_map.py,sha256=bOzoBFbB2XOyLfnqaVEL_BDwt3S9_oUGIl1N0awgZ7g,2519
|
48
48
|
nuql/resources/fields/value.py,sha256=CG3PnGeSMHDQciIMR6jkMhogCJZhpEfipLdyk9gnjJw,59
|
49
49
|
nuql/resources/records/__init__.py,sha256=gD8-xt4uIOpx_ZTnw1QTzOiwUpjKhR3nhkZw4AmEvaI,81
|
@@ -60,7 +60,7 @@ nuql/types/__init__.py,sha256=Ea4KR4mUs1RNUEskKF9sXfGpoQw2V9cnIYeE20wkChs,76
|
|
60
60
|
nuql/types/config.py,sha256=lFfPPe62l4DkfLXR8ecw5AiSRAFzsTYy_3a0d_1M7hY,659
|
61
61
|
nuql/types/fields.py,sha256=LjGgXM84WO54gRDkgvnwF3pjFvFxErdGYOvs0BskF_o,883
|
62
62
|
nuql/types/serialisation.py,sha256=XAy_gARcwYmfEuxWAJox2ClWK9ow0F5WXKVbMUVBq9w,242
|
63
|
-
nuql-0.0.
|
64
|
-
nuql-0.0.
|
65
|
-
nuql-0.0.
|
66
|
-
nuql-0.0.
|
63
|
+
nuql-0.0.5.dist-info/METADATA,sha256=PWciiZCpa9M44ICGuYaAuN7NeiuyhFPB5mJMk7-gFM8,1735
|
64
|
+
nuql-0.0.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
65
|
+
nuql-0.0.5.dist-info/licenses/LICENSE,sha256=AS8DF6oGYsvk781m40Nec9eCkj_S_oUVAWaFakB2LMs,1097
|
66
|
+
nuql-0.0.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|