Skip to content

Conversation

dimitribouniol
Copy link
Collaborator

Refactored codable implementations into their own extensions for readability.

@dimitribouniol dimitribouniol self-assigned this Oct 9, 2025
Comment on lines -119 to -125

public init(from decoder: any Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)

self.type = try container.decode(CredentialType.self, forKey: .type)
self.alg = try container.decode(COSEAlgorithmIdentifier.self, forKey: .alg)
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was completely redundant.

@dimitribouniol dimitribouniol merged commit d52e940 into main Oct 9, 2025
19 of 23 checks passed
@dimitribouniol dimitribouniol deleted the dimitri/cleanup branch October 9, 2025 13:17
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