13 Commits

Author SHA1 Message Date
ekoby 77cca2c903 fix tests -- json formatting changed 2024-12-02 16:12:04 -05:00
eugene 4e59f70dea model improvements:
- rename string to model_string to avoid collision in C++ world
- replace using int with number(int64_t)
2024-08-16 10:05:27 -04:00
eugene 3556ab57d6 use json-c for parsing 2024-06-14 11:16:38 -04:00
Eugene K 2051cffca4 fix memory leak in tests 2023-01-10 14:02:25 -05:00
Eugene K 99d0da1002 better ziti_intercept_cfg support:
* implement intercept matching/scoring
* zitilib: pick the best match intercept
* use lists instead of arrays
2022-09-27 11:12:03 -04:00
Eugene K 95627d14d8 upgrade testing to Catch2 v3 2022-07-29 11:35:21 -04:00
Eugene K 8ecf2843d2 fix test memory leaks 2022-06-29 12:08:28 -04:00
ekoby da0627d981 change parse_XXX() functions to return number of parsed bytes (#330) 2021-12-10 12:40:40 -05:00
ekoby 86d3ead70f better handling of uninitialized/default Enums: (#328)
- make 0 unset/default value, i.e. Enum_Unknown
- defined Enum values will start at 1
- serialize unset/0 Enum value to JSON as `null`
2021-12-07 15:15:07 -05:00
ekoby 48c8659d59 convert session type to enum (#326)
* support array of model enums

* fix logging extra d

* convert session type into an enum

* add enum array serialization test
2021-12-06 10:08:54 -05:00
Eugene K 80fa8fdffd replace JSON serialization 2021-03-12 16:25:55 -05:00
Eugene K e5d5da55b8 better enum compare 2021-03-08 12:58:59 -05:00
Eugene K 93fd7261ce Implement model enums 2021-03-08 12:52:26 -05:00