Skip to content

Catalog schema: Proposal to shift classes from enum to oneof type string #109

Closed
@leecalcote

Description

@leecalcote

Current Behavior

Regarding this discussion, meshery/meshkit#542 (comment), the current approach to having Catalog content class descriptions in a separate, single property makes extraction of the enum value and its corresponding description a bit more challenging than is perhaps necessary.

Proposal:

{
    "type": "string",
    "oneOf": [
        { "const": "open", "description": "The issue is currently open." },
        { "const": "closed", "description": "The issue has been resolved." },
        { "const": "pending" } // Waiting for more information
    ]
}

Contributor Guides and Handbook

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/staleIssue has not had any activity for an extended period of timekind/enhancementImprovement in current featurekind/questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions