asdf icon indicating copy to clipboard operation
asdf copied to clipboard

Add warning when schema $ref is a tag

Open eslavich opened this issue 5 years ago • 1 comments

It looks to me like $ref values were intended to be URIs or URI fragments, and it's only a quirk of the load_schema function in this library that tag values are resolved at all. Consider adding a check to the pytest plugin that fails when $ref is set to a tag, and a deprecation warning to load_schema so that we can encourage correct use of $ref.

eslavich avatar Feb 14 '20 16:02 eslavich

And this is because the tag_to_url_mapping and url_mapping` are always chained together and operate on both tags and URLs?

jdavies-st avatar Feb 14 '20 19:02 jdavies-st