Skip to content

Syntax Highlighting Inconsistent #7182

@jaydreyer

Description

@jaydreyer

Q&A (please complete the following information)

  • OS: macOS
  • Browser: chrome
  • Version: swagger-react 3.46.0
  • Swagger/OpenAPI version: [OpenAPI 3.0]

Content & configuration

Screen Shot 2021-04-14 at 3 06 08 PM

Describe the bug you're encountering

See screenshot. Some (but not all!) of our specs have strange syntax highlighting, and I cannot figure out what is causing it. In the screenshot above, you can see the request body changes colors all over the place but the response does not. The spec being used in the example above is 3.0.3. We are using swagger-ui-react v.3.46.0.

I've seen some other issues about this, but not much in the way to how to fix it. I'm not sure if this is a bug or something we're doing wrong on our end. The specs we're using are valid. Some are 2.0 and others are 3.0.x. I cannot give out access to our site, unfortunately.

Expected behavior

Syntax highlighting should be consistent across request and response bodies.

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