pwall567 / json-kotlin-schema

Kotlin implementation of JSON Schema (Draft 07)
MIT License
90 stars 13 forks source link

StackOverflowError - additionalProperties #6

Closed ogirardot closed 2 years ago

ogirardot commented 2 years ago

Hello, thanks for the good work ! There seems to be a infinite loop in the hashCode part of additionalPropertiesSchema : image

I write down this issue, I'll try and see to make a PR about it.

pwall567 commented 2 years ago

Hi - thanks for reporting this.

I had included the parent schema in the equality comparison and hashCode of AdditionalPropertiesSchema, and that was always going to lead to infinite recursion.

I have fixed that, along with a similar issue in AdditionalItemsSchema. Version 0.31 is now available in Maven Central - I hope this resolves your problem.

ogirardot commented 2 years ago

thanks a lot, checking now

ogirardot commented 2 years ago

works perfectly thanks a lot !