OAS:OpenAPI Editor/Source Code/Show In Component Source View

From Remain Software

Show In Component Source View

To view the source code of a component without leaving the editor you're working in. You can use the Component Source view. The latter shows the source code automatically when you click on a component. E.g., a schema, tag, security scheme, server, path, or operation.

The following depicts a security flow source code. But the same is valid when clicking any of the other components mentioned above.

Openapi component source view.png


Toggle between JSON/YAML Formats

You can toggle between viewing YAML and JSON using the toggle button at the top-right of the Component Source.

Openapi component source toggle yaml.png


Example: Toggling the above YAML to JSON format:

Openapi component source toggle json.png