Skip to content

OpenAPI 2.0/3.x.y - semantic highlighting does not always work for responses #4823

Open
@glowcloud

Description

@glowcloud

Describe the bug you're encountering

Semantic highlighting is buggy for responses, e.g. it does not work when the default response is the last response defined:

Image

When it is gone or defined as the first response:

Image

Sometimes the highlighting will partially work, e.g. in this case the highlighting will work for every response expect for the default one, as well as the 200 key:

Image

To reproduce...

Steps to reproduce the behavior:

  1. Go to https://editor-next.swagger.io/
  2. Load the OpenAPI 3.0 or 3.1 example
  3. Scroll through the definition to see responses for different operations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions