Skip to content

Typing assist causes errors #5732

@tumbislav

Description

@tumbislav

Scenario

In the Components/Schemas section of an OAS, take an existing object and add an attribute:

  • Move to the end of the object definition
  • Press Enter to get a new line and shift-Tab to outdent from the previous field.
  • Enter the field name newField: and Enter.
  • Enter type: string. The editor pops up a list of available types. The first type is array and it's pre-selected.
  • Press Enter. The editor replaces string with array

Result

There is a semantic error in the OAS.

This is one example. Other typing assist functions can be either annoying or harmful.

Workaround

Yes, by explicitly cancelling the autocomplete every single time.

Suggestion

Make all typing assist functions optional, so that the user can switch them all off with one button.

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