andri lim
96fcb658b4
Fix import stew/results to pkg/results ( #101 )
2024-10-15 18:24:47 +07:00
andri lim
b14f5b58e9
Deconvolute optional fields writer ( #77 )
2024-01-17 07:48:42 +07:00
jangko
9c74b885ea
Writer produce correct top-level or in-array optional elem when custom flavor omit optional fields
2024-01-11 16:51:00 +07:00
jangko
61bae43e01
Improve lexer flexibility
2023-12-26 16:03:46 +07:00
jangko
34dc825066
Add copyright year to source file
2023-12-25 22:55:07 +07:00
zah
f42567c00c
Basic support for Json flavours without default object serialization ( #66 )
...
Other changes:
* Migrate many procs accepting JsonReader to JsonLexer in order to
reduce the number of generic instantiations and the resulting code
bloat
2023-12-19 12:00:24 +02:00
Etan Kissling
85b7ea093c
add `{.raises.}` annotation to `writeValue` ( #64 )
...
Tag `writeValue` overrides with `{.raises: [IOError].}`.
The override in `writer.nim` also needs `gcsafe` to support recursion
in Nim 2.0.
2023-08-19 13:47:32 +02:00
Tanguy
e5b18fb710
bugfix: a leading field with a 'none' value was producing an incorrect encoding ( #50 )
...
The field was omitted, but not the comma following it, resulting in an
encoding such as '{, otherFields: ...}'
2022-07-15 10:23:35 +00:00
Zahary Karadjov
aca66fbd8e
bugfix: even the Option fields were mandatory under requireAllFields
2022-07-14 15:14:10 +03:00
Zahary Karadjov
bedbe6595a
Avoid overloading the separate classes of writeField ops
2022-06-19 12:38:44 +03:00
Zahary Karadjov
95399caff3
Use latest nim-serialization; Add tests for useCustomSerialization
2022-06-18 13:34:04 +03:00
zah
b9af0be99d
Don't write empty optional fields ( #47 )
2022-06-16 17:14:00 +03:00