Skip to content

Syntax highlight is behaving inconsistently  #887

@ahmadasaad89

Description

@ahmadasaad89

Describe the bug
The syntax highlighting feature is acting flaky for some response's examples, the highlight seems to be messed up in some of the responses and fine in others. I am using swagger-ui-react which doesn't seem to have an option to disable the syntax highlight yet.

To Reproduce
Not sure how to reproduce. It seems to happen randomly in some of the examples as you can see in the screenshots

Expected behavior
All the syntax highlight should behave consistently or provide a way to disable it in swagger-ui-react

Screenshots
Wrong highlight in some places:
image

Proper highlight in other places:
image

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