Azure / api-center

Provide feedback, request features, and report issues for Azure API Center.
MIT License
26 stars 4 forks source link

Syntax highlighting and JSON beautifying while viewing OpenAPI doc #25

Open justinyoo opened 6 months ago

justinyoo commented 6 months ago

What are you trying to achieve?

After I imported two OpenAPI docs, one in the JSON format and the other in the YAML format, I was expecting to see them in syntax-highlighted view, but it's not.

image

Even further, the JSON formatted OpenAPI document is now showing its minified format.

image

As a result, both are barely readable.

Proposed solution

pierceboggan commented 4 months ago

Thanks for the feature request! We also show a similar editor in the API analysis view, and should also ensure we have syntax highlighting enabled there too.

juliajuju93 commented 3 months ago

@justinyoo - the team worked on fixing this. Can you please verify if this is still an ongoing issue! Thanks

justinyoo commented 3 months ago

@juliajuju93 Here are some screenshots. It seems that GraphQL, WSDL and OpenAPI (JSON) look OK but OpenAPI (YAML) doesn't.

GraphQL image

WSDL image

OpenAPI (YAML) image

OpenAPI (JSON) image