Skip to content

Commit 659ded9

Browse files
authored
Add resolveInternal to swagger2openapi options (#375)
* Add resolveInternal to swagger2openapi options * prettier fix Co-authored-by: Gustav <->
1 parent 7af51b1 commit 659ded9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

packages/docusaurus-plugin-openapi-docs/src/openapi/utils/loadAndResolveSpec.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ export function convertSwagger2OpenAPI(spec: object) {
6666
return new Promise((resolve, reject) =>
6767
convertObj(
6868
spec,
69-
{ patch: true, warnOnly: true, text: "{}", anchors: true },
69+
{
70+
patch: true,
71+
warnOnly: true,
72+
text: "{}",
73+
anchors: true,
74+
resolveInternal: true,
75+
},
7076
(err: any, res: any) => {
7177
// TODO: log any warnings
7278
if (err) {

0 commit comments

Comments
 (0)