Open filipebreda opened 6 months ago
Yes, this dependency should be upgraded. I've reported that very issue to libopenapi maintainer back in the day. Restish is using libopenapi v0.9.7 while latest is v0.17 already, was surprised to see that issue again in restish
@danielgtaylor can we bump this please, currently restish is not usable for my spec (and I would love to explore the possibilities it provides!)
thanks in advance 🙏
When
hash := items.GoLow().Hash()
is called, libopenapi considers!s.Default.IsEmpty()
to be true, I assume bcause it is defined in the openapi file, proceeding to pass a nil valuelow.GenerateHashString(s.Default.Value)
.It's reproducible by adjusting
openapi/testdata
and runninggo test
.I checked the libopenapi repository and the code which is causing this issue has been changed, meaning a dependency upgrade might be in order.
Cheers.