Support deep linking in OpenAPI definitions

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
Oliver Sand
2021-08-04 18:23:43 +02:00
parent ab910ddcdc
commit 0383314c9b
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-api-docs': patch
---
Support deep linking in OpenAPI definitions.
@@ -14,8 +14,8 @@
* limitations under the License.
*/
import React, { useEffect, useState } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import React, { useEffect, useState } from 'react';
import SwaggerUI from 'swagger-ui-react';
import 'swagger-ui-react/swagger-ui.css';
@@ -83,7 +83,7 @@ export const OpenApiDefinitionWidget = ({ definition }: Props) => {
return (
<div className={classes.root}>
<SwaggerUI spec={def} />
<SwaggerUI spec={def} deepLinking />
</div>
);
};