Skip to content

Auto completion - fields with enum #1160

@kodi0309

Description

@kodi0309

Description:
When a property is marked as required in the schema and also has an enum defined, the property itself does not appear in the completion suggestions (Ctrl+Space) in VS Code with the Red Hat YAML extension.
When enum is deleted works properly.

Expected behavior:
The property key should always appear in the completion list if it is required, regardless of whether it has an enum.

Actual behavior:
The property key is missing from the completion list when it has an enum, even though it is required.

Environment

  • Windows

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