Commit Graph
60 Commits
Author SHA1 Message Date
Patrick Urbanke 992115c6a0 Added test_save_load for JSON 2023-11-12 20:51:00 +01:00
Patrick Urbanke 8d000e9db2 Added support for saving and loading 2023-11-12 20:41:15 +01:00
Patrick Urbanke 73ddc22063 Added second monster example 2023-11-12 18:38:51 +01:00
Patrick Urbanke 7e7691500f Use rfl::Variant 2023-11-12 17:36:34 +01:00
Patrick Urbanke a2c99ad37d Added the monster example to the JSON tests 2023-11-12 17:03:31 +01:00
Patrick Urbanke 6097bdb1bf Added the monster example 2023-11-12 16:46:56 +01:00
Patrick Urbanke a68622e57f Added tests for Ref, Box and custom constructors 2023-11-12 15:04:10 +01:00
Patrick Urbanke 470fa31142 Added tests for custom classes 2023-11-12 14:33:26 +01:00
Patrick Urbanke d19a14e926 Added more tests for containers 2023-11-12 14:13:50 +01:00
Patrick Urbanke 629dd0c036 Added more tests 2023-11-12 00:08:56 +01:00
Patrick Urbanke 5efa9df16e Added flexbuffers reader and writer as well as first test (but does not pass) 2023-11-11 23:16:49 +01:00
Patrick Urbanke 540af2d0cb Merge branch 'main' of github.com:getml/reflect-cpp 2023-11-08 21:32:44 +01:00
Patrick Urbanke 63a9de90b3 Added thread-safe memoization 2023-11-08 21:32:31 +01:00
Patrick Urbanke 6d098ae36c Fixed the validator so it can be supported as an anonymous field 2023-11-07 18:21:59 +01:00
Patrick Urbanke 1e11d26c8c Added tests for the anonymous fields 2023-11-06 23:44:51 +01:00
Patrick Urbanke f9a16641c9 Added support for parsing results 2023-11-05 11:38:33 +01:00
Patrick Urbanke fd5ab423af Updated test_readme_example 2023-11-03 22:30:02 +01:00
Patrick Urbanke 720c15762b Use auto for the template parameters 2023-11-03 22:10:18 +01:00
Patrick Urbanke fcaf2e8e23 Added size validation 2023-11-02 22:53:58 +01:00
Patrick Urbanke 197d5f2bf8 Added regex pattern validators 2023-11-02 22:26:44 +01:00
Patrick Urbanke ba997272c7 Added OneOf 2023-11-02 20:02:34 +01:00
Patrick Urbanke 70b11650f8 Renamed to Minimum, Maximum, etc 2023-11-02 20:02:22 +01:00
Patrick Urbanke 815b9fc45d Added AnyOf and more comparisons 2023-11-01 22:28:38 +01:00
liuzicheng1987 070169f4b2 Merge pull request #11 from jimixxperez/feature/validator
Feature/validator
2023-11-01 21:15:24 +01:00
Patrick Urbanke 92d2d92c74 Added the basic functionality for constrained numeric values 2023-10-31 20:11:54 +01:00
Jeremy Perez 62f60b1cf3 add missing include headers. 2023-10-27 13:13:08 +02:00
Jeremy Perez 8aa303285e Merge branch 'main' into feature/validator 2023-10-27 13:07:49 +02:00
Jeremy Perez b9a4542ea0 adapted test. 2023-10-27 13:07:03 +02:00
Jeremy Perez a41f35ce84 adapted test. 2023-10-27 12:46:17 +02:00
Patrick Urbanke 4d967ccde2 Added support custom constructors with results 2023-10-25 20:23:16 +02:00
Patrick Urbanke ea3ce3632c Added support for better error messages 2023-10-21 14:19:32 +02:00
Patrick Urbanke 94b8ab368b Added tests for string map and string unordered map 2023-10-10 23:14:25 +02:00
Patrick Urbanke 5198a446aa Added support for various containers 2023-10-10 21:37:02 +02:00
Patrick Urbanke 23922db9c5 Added tests for various containers 2023-10-09 22:32:37 +02:00
Patrick Urbanke 745c7ead2c Added support for clang 2023-10-09 21:08:05 +02:00
Jeremy Perez 58085f9120 Merge branch 'uuid_ft' 2023-10-09 13:57:10 +02:00
Jeremy Perez fdfec40f92 added constr and some samples. 2023-10-09 13:44:45 +02:00
Patrick Urbanke c7fe17cf77 Made sure we can replace structs with other structs 2023-10-08 11:23:46 +02:00
Patrick Urbanke 266defd578 Made sure rfl::as works as intended 2023-10-08 10:56:20 +02:00
Jeremy Perez 934c5d0045 changed from uuid to constr, tested out different things, still not working properly. 2023-10-07 23:09:14 +02:00
Patrick Urbanke f2a698ae34 Make sure we can replace flattened fields 2023-10-07 21:41:36 +02:00
Patrick Urbanke fed24baea5 Added tests for replace_flatten 2023-10-07 21:37:19 +02:00
Patrick Urbanke c365d1b308 Made sure we support zero-copy replace 2023-10-07 21:00:01 +02:00
Patrick Urbanke 2b50fb8ce0 Made the .to_class(...) method optional 2023-10-07 13:53:16 +02:00
Patrick Urbanke 499011c8ba Use R-strings for the tests 2023-10-07 12:42:06 +02:00
Patrick Urbanke 21803f509e Added support for std::unique_ptr and rfl::Box 2023-10-07 12:23:48 +02:00
Jeremy Perez 5c63a18771 trying to make the constexpr function prototype work. 2023-10-07 00:01:00 +02:00
Patrick Urbanke f708348fb1 Added support for timestamps 2023-10-04 21:29:06 +02:00
Patrick Urbanke 2c86d80626 Added support for std::array 2023-10-03 21:35:25 +02:00
Patrick Urbanke cb4ffaf216 Added a test for optional fields 2023-10-03 17:19:56 +02:00