Skip to content

DESCRIBE ENUMERATION drops documentation comments #393

@retran

Description

@retran

Impact

Roundtrip loses all documentation on enumerations — /** */ blocks vanish after DESCRIBE.

Steps to Reproduce

CREATE ENUMERATION MyModule."PaymentStatus" (
  /** Payment status */
  /** Awaiting payment */ "Awaiting",
  /** Completed */ "Completed"
);

Then run:

DESCRIBE ENUMERATION MyModule.PaymentStatus

Actual Result

Output contains no /** */ comment blocks. All documentation is stripped.

Expected Result

DESCRIBE emits documentation comments matching the CREATE input, preserving both enum-level and per-value comments.

Severity

Medium


Discovered during AI-assisted manual testing session (2026-04-29, mxcli v0.7.0-257-ga07e7e0).

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