Skip to content

Question on description in enumeration #1595

Open
@francescoingv

Description

@francescoingv

Having an enumeration, i.e. enum,
it would be useful to have the possibility to associate a description for each of the allowed values,
but as far as I understand it is not possible.
As an example, I understand it is not possible to associate the commented descriptions in the following excerpt:

      "enum": [
        "Value1", # "long description for Value 1"
        "Value2"  # "long description for Value 2"
      ]

I would like to know if my understanding is wrong, and in this case have an example of how to describe the above,
or if it is correct, and in this case if it is expected to have this in place in the future.

Thank you,
Francesco

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