Skip to content

Should entry-points respect HideEnumValueAttribute information? #341

Closed

Description

The HideEnumValueAttribute is currently only respected by the command line help tool. Here is an example of it:

[HideEnumValue]
Def = DefaultValue,
[HideEnumValue]
Default = DefaultValue,
[HideEnumValue]
Min = Minimum,
[HideEnumValue]
Max = Maximum,

Yet in the entry-point manifest I see is polluted with these shorter forms. I feel like these probably ought to be suppressed here during manifest generation as well.

"Name": "ReplaceWith",
"Type": {
"Kind": "Enum",
"Values": [
"Default",
"Def",
"DefaultValue",
"Mean",
"Minimum",
"Min",
"Maximum",
"Max"
]

Also the entry-point based API is affected by the same issue, of course.

Default = 0,
Def = 0,
DefaultValue = 0,
Mean = 1,
Minimum = 2,
Min = 2,
Maximum = 3,
Max = 3

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

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