We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e05c074 commit e5cc9f3Copy full SHA for e5cc9f3
1 file changed
eventcatalog/src/components/SchemaExplorer/JSONSchemaViewer.tsx
@@ -103,8 +103,13 @@ function mergeAllOfSchemas(schemaWithProcessor: any): any {
103
104
async function processSchema(schema: any, rootSchema?: any): Promise<any> {
105
if (!schema) return schema;
106
- let returnSchema = await $RefParser.resolve(schema);
107
- return returnSchema;
+
+ let dereferencedSchema = await $RefParser.dereference(schema, {
108
+ dereference: {
109
+ circular: 'ignore', // Don't allow circular $refs
110
+ },
111
+ });
112
+ return dereferencedSchema;
113
}
114
115
// SchemaProperty component
0 commit comments