-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpaClient: Refactor for json serializer settings (#80)
* OpaClient: Refactor ctors down to just one ctor with optional params. Signed-off-by: Philip Conrad <[email protected]> * OpaClient: Remove overloads + Refactor to plumb in global/local JsonSerializerSettings. This commit removes redundant method overloads, greatly reducing code clutter, for minimal, if any, performance impact. This commit also plumbs in JsonSerializerSettings as an optional named parameter in the `check`, `evaluate`, and `evaluateDefault` methods. Signed-off-by: Philip Conrad <[email protected]> * OpaClient: Fix null input handling. Signed-off-by: Philip Conrad <[email protected]> * test: Add basic JsonSerializer test for evaluate<T>. Signed-off-by: Philip Conrad <[email protected]> * Fix the build. Signed-off-by: Philip Conrad <[email protected]> --------- Signed-off-by: Philip Conrad <[email protected]>
- Loading branch information
1 parent
0acf0e8
commit 5b66fe0
Showing
2 changed files
with
83 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.