Skip to content

Comments

Make Roles optional in ApiKey and Credential classes#172

Merged
marcominerva merged 1 commit intomasterfrom
develop
Oct 16, 2025
Merged

Make Roles optional in ApiKey and Credential classes#172
marcominerva merged 1 commit intomasterfrom
develop

Conversation

@marcominerva
Copy link
Owner

Updated the ApiKey and Credential record classes to make the Roles parameter optional by providing a default value of null. This change allows for the creation of instances without explicitly specifying roles. Overrode the Equals method in both classes to provide custom equality comparisons. Refactored the GetHashCode methods to use expression-bodied members for simplicity.

Updated the `ApiKey` and `Credential` record classes to make the `Roles` parameter optional by providing a default value of `null`. This change allows for the creation of instances without explicitly specifying roles. Overrode the `Equals` method in both classes to provide custom equality comparisons. Refactored the `GetHashCode` methods to use expression-bodied members for simplicity.
@marcominerva marcominerva merged commit 3b34c13 into master Oct 16, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant