-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hotfix v0.7.1 #40
Hotfix v0.7.1 #40
Conversation
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.
…_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.
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
…o 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.
Updated Cargo.toml to reflect the new version 0.7.1.
Updated Cargo.toml to reflect the new version 0.7.1.
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.
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.
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.
Pull Request SummaryDescriptionThis pull request closes #39 , which reported an invalid JSON payload when using Changes Made
Key Test Scenarios
ConclusionThe updates ensure that the Credit and thanks to @xbb for reporting the issue by opening issue #39 and for taking the time to offer a solution. |
IMPORTANT: Please do not create a Pull Request without creating an issue first.
Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.
Please provide enough information so that others can review your pull request:
Explain the details for making this change. What existing problem does the pull request solve?
Test plan (required)
Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.
Code formatting
Closing issues
Put
closes #XXXX
in your comment to auto-close the issue that your PR fixes (if such).