We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da9ab86 commit 25c42e7Copy full SHA for 25c42e7
openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/converter/DataTypeConverter.kt
@@ -360,7 +360,9 @@ class DataTypeConverter(
360
*/
361
private fun isLoop(info: SchemaInfo): Boolean {
362
val found = current.find {
363
- it.getName() == info.getName()
+ // $ref and non-ref SchemaInfo have the same name.
364
+ // We are only interested if we have seen a non-ref!
365
+ it.getName() == info.getName() && !it.isRefObject()
366
}
367
return found != null
368
0 commit comments