Skip to content

deduplicate websoc enrollment field handling across services and schemas #420

Description

@aadi-shanker

The websoc enrollment fields are currently copy-pasted across multiple files in the enrollment history feature. Any change to these fields (e.g. adding a new field, etc) requires updating all three locations independently, which is error-prone and inconsistent.

Possible Solution

Maybe extract shared enrollment field definitions into a single source (e.g. a shared Zod schema or typed helper) that the service, REST schema, and GraphQL schema all derive from.

Context

Surfaced during PR #300 review by @laggycomputer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions