You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divclass="example"><p>An example of a base path for an API with current version 1.0.2:</p><pre>https://api.example.org/v1/</pre><pre>version: '1.0.2'</pre><pre>servers:
- description: test environment
url: https://api.test.example.org/v1/
- description: production environment
url: https://api.example.org/v1/
</pre></div>
The server part, and maybe version looks like a partial OpenAPI specification in YAML format, but currently it's incorrectly highlighted.
If it is indeed YAML it should be:
<preclass="yaml">YAML</pre>
Maybe version and server should be in one code block if it's indeed one YAML.
See DesignRules.md#L539-L549:
The
server
part, and maybeversion
looks like a partial OpenAPI specification in YAML format, but currently it's incorrectly highlighted.If it is indeed YAML it should be:
Maybe
version
andserver
should be in one code block if it's indeed one YAML.BTW
YAML
is supported by highlightjs.Related:
The text was updated successfully, but these errors were encountered: