Skip to content

Conversation

@jwilkinson87
Copy link
Contributor

This pull request refactors how metadata is handled in the FormSubmissionVersion resource. The main change is replacing the generic meta map with a strongly-typed FormSubmissionVersionMeta class, improving type safety and clarity in the codebase. Additionally, the new class is annotated to support proper JSON serialization/deserialization.

Metadata handling improvements:

  • Replaced the generic meta: Map<String, Any>? property in FormSubmissionVersion with a strongly-typed meta: FormSubmissionVersionMeta?, and annotated it with @Meta for better JSON:API support. (src/main/kotlin/com/ctrlhub/core/datacapture/resource/FormSubmissionVersion.kt)
  • Introduced a new FormSubmissionVersionMeta class with explicit fields for createdAt, latest, and isLatest, each with appropriate JSON annotations and type safety. (src/main/kotlin/com/ctrlhub/core/datacapture/resource/FormSubmissionVersion.kt)

Dependency and import updates:

  • Added necessary imports for @Meta and LocalDateTime to support the new metadata structure. (src/main/kotlin/com/ctrlhub/core/datacapture/resource/FormSubmissionVersion.kt)

@github-actions
Copy link

There is a problem with the Gemini CLI PR review. Please check the action logs for details.

@jwilkinson87 jwilkinson87 merged commit 7cb3698 into main Oct 16, 2025
2 of 3 checks passed
@jwilkinson87 jwilkinson87 deleted the feat/add-form-submission-version-meta branch October 16, 2025 12:58
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