meshery / schemas

Logical object models for Meshery
Apache License 2.0
15 stars 27 forks source link

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

Closed leecalcote closed 2 days ago

leecalcote commented 1 month ago

Current Behavior

Regarding this discussion, https://github.com/meshery/meshkit/pull/542#discussion_r1685910311, 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

stale[bot] commented 1 week ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 days ago

This issue is being automatically closed due to inactivity. However, you may choose to reopen this issue.