swagger-api / swagger-api/apidom

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

Open
#4,823 0 comments 0 reactions 1 assignee View on GitHub

@robert-hebel-sb is already working on this.

Since Jun 30, 2025.

bug OpenApi 2.0 OpenApi 3.0 OpenAPI 3.1
Dominant language
TypeScript
Stars
100
Forks
26
Avg merge
14h 36m
Merged PRs (30d)
22

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.