santhosh-tekuri/jsonschema

panic "compilation failed: no Loader found for urn:"

danielb42 opened this issue ยท 6 comments

Hi there,

I'm trying to validate some json against this schema. The first line ("$id": "urn:uuid:85626792-9ee7-46bb-8fc8-4ba708cfdc1d",) causes a panic however (see title). Once I remove that line, validation works fine.

Can someone take a look so that I don't have to tweak the schema before validating against it?

Thanks!

this is recently fixed after v5 in e82f010

URN support is added in this commit.

Great! Thanks for the hint, works perfectly.

i just tagged v5.0.1 which includes this fix

Even better :) Thank you!

Hey @santhosh-tekuri, I think there's an additional dot slipped into the tag name. Go doesn't recognize it as latest..

thanks for pointing. I used git release ui to create tag, which seems messed with the name.
corrected now.