Skip to content

Name Component Types #26

Closed
Closed

Description

@leogdion
No description provided.

Activity

  1. added this to the milestone on Sep 15, 2020
  2. modified the milestones: , v1.0.0-alpha.3 on Nov 27, 2025
  3. leogdion commented on Jan 8, 2026

    @leogdion
    MemberAuthor

    Status: NOT IMPLEMENTED

    Name Component types are not currently supported in MistKit's FieldValue enum.

    Current State

    What Exists:

    • Listed in README.md roadmap (line 323) as pending for v1.0.0-alpha.3
    • CloudKit supports nameComponents field type for hierarchical names (firstName, lastName, etc.)

    What's Missing:

    • No nameComponents case in FieldValue enum
    • No conversion logic for PersonNameComponents type
    • No CloudKit mapping implementation
    • No tests for Name Component serialization/deserialization

    What Remains

    1. Extend FieldValue enum:

      • Add nameComponents case to Sources/MistKit/Extensions/OpenAPI/FieldValue.swift
      • Define associated value type for Name Components
    2. Create conversion extensions:

      • New file: Sources/MistKit/Extensions/OpenAPI/FieldValue+NameComponents.swift
      • Implement conversion from PersonNameComponents to CloudKit format
      • Implement conversion from CloudKit format to PersonNameComponents
    3. Add tests:

      • Test serialization of Name Components
      • Test deserialization of Name Components
      • Test all name component fields (firstName, lastName, nickname, etc.)
    4. Add documentation:

      • Usage examples
      • Field mapping documentation
      • Platform-specific considerations (PersonNameComponents is Foundation)

    Files to Create/Modify

    • Sources/MistKit/Extensions/OpenAPI/FieldValue.swift (add nameComponents case)
    • Sources/MistKit/Extensions/OpenAPI/FieldValue+NameComponents.swift (new)
    • Tests/MistKitTests/FieldValueNameComponentsTests.swift (new)
    • README.md (update roadmap)
  4. leogdion commented on Jan 9, 2026

    @leogdion
    MemberAuthor

    This issue is now tracked as part of parent issue #199 - Complete CloudKit API Coverage

  5. leogdion commented on Apr 29, 2026

    @leogdion
    MemberAuthor

    Completed and verified in codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions