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
When any number of types have a circular "is-a" relationship it results in a StackOverflowException during validation. Ideally, it should result in an InvalidSchemaException when loading the schema. See amazon-ion/ion-schema-rust#205 for more details.
Minimal reproducible example:
@Test
fun`types with cyclical is-a relationships should cause InvalidSchemaException`() {
val iss =IonSchemaSystemBuilder.standard().build()
val isl =""" type::{ name: a, type: b } type::{ name: b, type: a }"""
assertThrows<InvalidSchemaException> { iss.newSchema(isl) }
}
The text was updated successfully, but these errors were encountered:
When any number of types have a circular "is-a" relationship it results in a
StackOverflowException
during validation. Ideally, it should result in anInvalidSchemaException
when loading the schema. See amazon-ion/ion-schema-rust#205 for more details.Minimal reproducible example:
The text was updated successfully, but these errors were encountered: