Skip to content

feat: use generated models for client.identifiers#79

Merged
iFergal merged 33 commits intomainfrom
feat/enchange-identifier-handling-with-new-generated-model
Mar 11, 2026
Merged

feat: use generated models for client.identifiers#79
iFergal merged 33 commits intomainfrom
feat/enchange-identifier-handling-with-new-generated-model

Conversation

@Sotatek-Patrick-Vu
Copy link
Collaborator

@Sotatek-Patrick-Vu Sotatek-Patrick-Vu commented Mar 4, 2026

Initial PR to incorporate generated types from OpenAPI spec. Starting with identifier endpoints first.

Sotatek-DucPhung and others added 25 commits March 4, 2026 14:49
- Introduced IdentifierModelConverter for converting generated KERIA models to domain models.
- Added IdentifierPayloadMapper to build request payloads for identifier endpoints.
- Updated Identifier class to utilize GeneratedModelMapper for JSON parsing.
- Modified IdentifierListResponse to use a list of Identifier objects instead of generic Object.
- Implemented KeyStateRecordDeserializer to handle deserialization of KeyStateRecord.
- Centralized Jackson configuration in GeneratedModelConfig for better management of generated models.
- Updated various tests to reflect changes in identifier handling and ensure consistency.
@iFergal iFergal changed the title refactor: Apply generated models for Identifier feat: use generated models for client.identifiers Mar 4, 2026
@iFergal
Copy link
Collaborator

iFergal commented Mar 10, 2026

@Sotatek-Patrick-Vu I reverted the last commit as this does not align with the format sent from KERIA over the wire. From your previous approach, it seems mixins aren't sufficient, and getKt or getNt was always returning null. This wasn't caught because the e2e tests never access these values.

I've added a new commit which provides a fix. It's not the best fix, but it'll do for now. Opening an issue to track.

@iFergal iFergal merged commit b3fec4a into main Mar 11, 2026
3 checks passed
@iFergal iFergal deleted the feat/enchange-identifier-handling-with-new-generated-model branch March 11, 2026 09:24
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.

3 participants