mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-22 23:28:33 -04:00
Bye bye circular refs (#4015)
Co-authored-by: Filipe Freire <livrofubia@gmail.com> Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
This commit is contained in:
@@ -709,7 +709,11 @@ export const convert: Converter = async rawData => {
|
||||
}
|
||||
|
||||
try {
|
||||
apiDocument = await SwaggerParser.validate(apiDocument) as OpenAPIV3.Document;
|
||||
apiDocument = await SwaggerParser.validate(apiDocument, {
|
||||
dereference: {
|
||||
circular: 'ignore',
|
||||
},
|
||||
}) as OpenAPIV3.Document;
|
||||
} catch (err) {
|
||||
console.log('[openapi-3] Import file validation failed', err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user