Skip to content

Commit 251e377

Browse files
committed
Render circular refs using SchemaItem
1 parent 42e6a4f commit 251e377

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -789,13 +789,13 @@ export function createNodes(
789789

790790
for (const label of circularItems) {
791791
nodes.push(
792-
create("div", {
793-
style: {
794-
marginTop: ".5rem",
795-
marginBottom: ".5rem",
796-
marginLeft: "1rem",
797-
},
798-
children: createDescription(label as string),
792+
create("SchemaItem", {
793+
collapsible: false,
794+
name: "",
795+
required: false,
796+
schemaName: label,
797+
qualifierMessage: undefined,
798+
schema: {},
799799
})
800800
);
801801
}

0 commit comments

Comments
 (0)