Commit Graph

162 Commits

Author SHA1 Message Date
Zahary Karadjov 25adda6f3f
Alternative implementation that doesn't require rewind points 2020-07-21 22:09:38 +03:00
Zahary Karadjov 4d8145c67b
WIP Deserialization of the JsonString literal fields 2020-07-17 23:58:02 +03:00
Zahary Karadjov 1cf51931f1
Implement forward-compatible deserialization 2020-06-30 22:11:56 +03:00
Zahary Karadjov 463a0cf1b7
Address review comments; Passing test suite 2020-06-22 17:42:50 +03:00
Zahary Karadjov 6e92113a06
Stricter error handling 2020-06-16 01:03:00 +03:00
Zahary Karadjov c478b7bbba
Proper JSON serialization for IP addresses 2020-06-05 17:06:48 +03:00
Zahary Karadjov 4f2aa8b5cb
Make the JsonString type more accessible 2020-06-01 21:15:33 +03:00
Zahary Karadjov 8d4c31f7c2
Allow custom serializers to report unexpected values in the Json file 2020-05-30 22:40:17 +03:00
Zahary Karadjov aa51f6fed1
Test case for the serializedFieldName pragma
The pragma was added in https://github.com/status-im/nim-serialization/pull/25
2020-05-20 13:53:21 +03:00
Zahary Karadjov 2f5e71b25f
Use the latest FastStreams API 2020-05-13 11:43:52 +03:00
Alexander Ivanov 193d103934 Read keys of table as string as this is only valid json, but convert them if needed 2020-05-08 17:01:15 +03:00
Jacek Sieka cb695d175f reader support for stringlikes 2020-04-29 19:37:34 +03:00
Jacek Sieka e485b74a10 treat array-of-char as string 2020-04-29 19:37:34 +03:00
Zahary Karadjov bed0e403a4
Add support for not nil ref types 2020-04-23 01:39:56 +03:00
Zahary Karadjov 96a337d334
stream.eof -> not stream.readable 2020-04-14 17:08:07 +03:00
Zahary Karadjov a8c5604808
Stop using the AsciiStream flavour 2020-04-13 17:01:49 +03:00
Zahary Karadjov 16931f4fa3
Use the improved InputStream API 2020-04-10 16:46:12 +03:00
Zahary Karadjov bdddff5037
Use the latest FastStreams API 2020-04-09 23:14:14 +03:00
Zahary Karadjov f52683b2ee
Close #12 2020-04-09 20:46:48 +03:00
Zahary Karadjov c108ba90e6
Update the lexer test and add it to nimble test 2020-03-25 18:43:56 +02:00
Zahary Karadjov 6e9d69dafb
Handle int overflows better; Support Nim 1.2 2020-03-25 18:43:49 +02:00
Zahary Karadjov 6350b72b5e
Handle openArrays in writeField 2020-03-18 20:20:35 +02:00
Zahary Karadjov ab53e009b9
Add JsonString. to facilitate easier logging in Chronicles 2020-03-18 18:21:18 +02:00
Zahary Karadjov 88b79e2300
Remove warnings in Nim 1.0.2 2019-11-04 18:42:34 +00:00
Ștefan Talpalaru 173c7b4a86
CI: update script path 2019-08-24 04:45:42 +02:00
Zahary Karadjov f4bd22e054 Support for tuples 2019-08-14 16:18:42 +02:00
andri lim a0607c6375 fix 32 bit problem 2019-08-14 15:44:59 +02:00
Zahary Karadjov f6a7da52e0
Handle the writing aspects of custom field serialization 2019-08-07 01:20:27 +03:00
Zahary Karadjov 9a8d593598
Fix compilation issues with Nim 0.19.6 2019-08-02 15:07:06 +03:00
Alexander Ivanov e49b8bdb43 Implement support for normal and ordered tables 2019-08-02 13:33:44 +03:00
Zahary Karadjov 342a272281
Some of the test cases were moved to the generic suite in nim-serialization 2019-08-02 11:54:47 +03:00
Zahary Karadjov 997ae368a5
Add a test case for case objects 2019-08-01 17:12:31 +03:00
Zahary Karadjov 0c12b0f42d
In error messages, display the start position of strings instead of the end pos 2019-07-21 17:12:48 +03:00
Zahary Karadjov 943501f941
Improved support for range types 2019-07-19 02:02:15 +03:00
Zahary Karadjov 95bdb8acc1
Export more procs useful in low-level deserializers 2019-07-19 02:01:34 +03:00
Zahary Karadjov 73d9e0d458
Handle changes in the serialization APIs 2019-07-18 21:20:17 +03:00
Zahary Karadjov 7922a83c4d
Serialization for sets 2019-07-16 13:20:05 +03:00
Jacek Sieka f349761b76
std_shims -> stew 2019-07-07 11:46:32 +02:00
Jacek Sieka e127b49cd4
fix typo 2019-06-28 09:50:51 +02:00
Zahary Karadjov 9d909d352a Add support and tests for Option and reference types 2019-06-24 17:38:37 +03:00
Zahary Karadjov a1baedeb1b Opt-in helper module for serializing the stdlib Port type 2019-06-20 15:35:17 +03:00
Ștefan Talpalaru f9e06671ce
Merge branch 'buildnim' 2019-06-18 22:05:57 +02:00
Ștefan Talpalaru 084e9126fb
licenses 2019-06-18 19:52:12 +02:00
Ștefan Talpalaru 01c33ff3c8
CI setup + README.md 2019-06-18 19:49:50 +02:00
Mamy André-Ratsimbazafy f3d8f822bd
Handle reserved keyword `type` as field name 2019-05-28 17:42:18 +02:00
Zahary Karadjov 4ffd0b3af3 Add a test for handling missing fields 2019-04-08 15:29:21 +03:00
Mamy André-Ratsimbazafy 3cb55e7057
Print custom exception names 2019-03-29 13:49:47 +01:00
Ștefan Talpalaru 24191689fa
Merge branch 'nimble' 2019-03-25 22:34:02 +01:00
Ștefan Talpalaru 0bf9b6ed78
*.nimble: remove import 2019-03-25 22:32:41 +01:00
Zahary Karadjov cbec44d339 Handle more standard-libary types 2019-03-25 01:11:54 +02:00