You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOGGER.error("Array schema {} has a sub-item referencing itself. Worked around the self-reference schema using any type instead.", name);
515
+
schema.setItems(newSchema<>());
516
+
}
517
+
}
518
+
519
+
if (ModelUtils.isOneOf(schema)) {
520
+
for (inti = 0; i < schema.getOneOf().size(); i++) {
521
+
if (isSelfReference(name, (Schema) schema.getOneOf().get(i))) {
522
+
LOGGER.error("oneOf schema {} has a sub-item referencing itself. Worked around the self-reference schema by removing it.", name);
523
+
schema.getOneOf().remove(i);
524
+
}
525
+
}
526
+
}
527
+
528
+
if (ModelUtils.isAnyOf(schema)) {
529
+
for (inti = 0; i < schema.getAnyOf().size(); i++) {
530
+
if (isSelfReference(name, (Schema) schema.getAnyOf().get(i))) {
531
+
LOGGER.error("anyOf schema {} has a sub-item referencing itself. Worked around the self-reference schema by removing it.", name);
532
+
schema.getAnyOf().remove(i);
533
+
}
534
+
}
535
+
}
536
+
537
+
if (schema.getAdditionalProperties() != null && schema.getAdditionalProperties() instanceofSchema) {
538
+
if (isSelfReference(name, (Schema) schema.getAdditionalProperties())) {
539
+
LOGGER.error("Schema {} (with additional properties) has a sub-item referencing itself. Worked around the self-reference schema using any type instead.", name);
0 commit comments