Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(tests): add regression tests for issue #39 and proptest seeds Added build_payload_from_claims_prop_test.rs to include regression tests for issue #39, ensuring the fix for invalid JSON payloads with CustomClaims remains effective. Introduced generic_claims_wrap_value_prop_test.proptest-regressions to store seeds for failure cases generated by proptest. Created an empty generic_claims_wrap_value_prop_test.rs file for future test implementations. * feat(tests): add property tests for wrap_value and build_payload_from_claims Added proptest dependency to Cargo.toml for property-based testing. Created build_payload_from_claims_prop_test.proptest-regressions to store seeds for failure cases generated by proptest. Updated build_payload_from_claims_prop_test.rs to include detailed property tests for the build_payload_from_claims function. Added generic_claims_wrap_value_prop_test.proptest-regressions with additional seeds for failure cases. Implemented generic_claims_wrap_value_prop_test.rs to validate the correctness and robustness of the wrap_value function using property tests. * fix(generic_builder): handle empty keys and null values in claims Updated set_claim method to ignore empty keys and handle null values correctly. Refactored build_payload_from_claims to ensure proper nesting and serialization of claims. Added wrap_claims and wrap_value helper functions to handle JSON object wrapping. Included comprehensive tests for various claim scenarios: Custom claim serialization Empty claims Null claims Nested structures Multiple claims Different data types * fix(generic_builder): refactor and add tests for dynamic claims and no claims Refactored GenericBuilder to improve readability and maintainability. Added tests for dynamic claims and scenarios with no claims for V2, Local tokens. Ensured proper handling of various claim types and edge cases in the builder and parser. * chore(release): bump version to 0.7.1 Updated Cargo.toml to reflect the new version 0.7.1. * chore(release): bump version to 0.7.1 Updated Cargo.toml to reflect the new version 0.7.1. * fix: resolve invalid JSON payloads with CustomClaims (issue #39) These commits are intended to fix issue #39. feat(tests): add regression tests for issue #39 and proptest seeds Added build_payload_from_claims_prop_test.rs to include regression tests for issue #39, ensuring the fix for invalid JSON payloads with CustomClaims remains effective. Introduced generic_claims_wrap_value_prop_test.proptest-regressions to store seeds for failure cases generated by proptest. Created an empty generic_claims_wrap_value_prop_test.rs file for future test implementations. feat(tests): add property tests for wrap_value and build_payload_from_claims Added proptest dependency to Cargo.toml for property-based testing. Created build_payload_from_claims_prop_test.proptest-regressions to store seeds for failure cases generated by proptest. Updated build_payload_from_claims_prop_test.rs to include detailed property tests for the build_payload_from_claims function. Added generic_claims_wrap_value_prop_test.proptest-regressions with additional seeds for failure cases. Implemented generic_claims_wrap_value_prop_test.rs to validate the correctness and robustness of the wrap_value function using property tests. fix(generic_builder): handle empty keys and null values in claims Updated set_claim method to ignore empty keys and handle null values correctly. Refactored build_payload_from_claims to ensure proper nesting and serialization of claims. Added wrap_claims and wrap_value helper functions to handle JSON object wrapping. Included comprehensive tests for various claim scenarios: custom claim serialization, empty claims, null claims, nested structures, multiple claims, and different data types. fix(generic_builder): refactor and add tests for dynamic claims and no claims Refactored GenericBuilder to improve readability and maintainability. Added tests for dynamic claims and scenarios with no claims for V2, Local tokens. Ensured proper handling of various claim types and edge cases in the builder and parser. chore(release): bump version to 0.7.1 Updated Cargo.toml to reflect the new version 0.7.1. These changes aim to address and resolve the issues related to invalid JSON payloads when using CustomClaims as described in issue #39. * fix: resolve invalid JSON payloads with CustomClaims (issue #39) These commits are intended to fix issue #39. feat(tests): add regression tests for issue #39 and proptest seeds Added build_payload_from_claims_prop_test.rs to include regression tests for issue #39, ensuring the fix for invalid JSON payloads with CustomClaims remains effective. Introduced generic_claims_wrap_value_prop_test.proptest-regressions to store seeds for failure cases generated by proptest. Created an empty generic_claims_wrap_value_prop_test.rs file for future test implementations. feat(tests): add property tests for wrap_value and build_payload_from_claims Added proptest dependency to Cargo.toml for property-based testing. Created build_payload_from_claims_prop_test.proptest-regressions to store seeds for failure cases generated by proptest. Updated build_payload_from_claims_prop_test.rs to include detailed property tests for the build_payload_from_claims function. Added generic_claims_wrap_value_prop_test.proptest-regressions with additional seeds for failure cases. Implemented generic_claims_wrap_value_prop_test.rs to validate the correctness and robustness of the wrap_value function using property tests. fix(generic_builder): handle empty keys and null values in claims Updated set_claim method to ignore empty keys and handle null values correctly. Refactored build_payload_from_claims to ensure proper nesting and serialization of claims. Added wrap_claims and wrap_value helper functions to handle JSON object wrapping. Included comprehensive tests for various claim scenarios: custom claim serialization, empty claims, null claims, nested structures, multiple claims, and different data types. fix(generic_builder): refactor and add tests for dynamic claims and no claims Refactored GenericBuilder to improve readability and maintainability. Added tests for dynamic claims and scenarios with no claims for V2, Local tokens. Ensured proper handling of various claim types and edge cases in the builder and parser. chore(release): bump version to 0.7.1 Updated Cargo.toml to reflect the new version 0.7.1. These changes aim to address and resolve the issues related to invalid JSON payloads when using CustomClaims as described in issue #39.
- Loading branch information