jackson-module-jsonSchema icon indicating copy to clipboard operation
jackson-module-jsonSchema copied to clipboard

Default visitor context generates invalid URNs

Open evshi opened this issue 10 years ago • 1 comments

VisitorContext uses ResolvedType.toCanonical() to create the URN. Problem is implementations of toCanonical in Jackson core types use '<' and '>' to denote type params(e.g. SimpleType). These two characters are excluded from the RFC for URNs: https://www.ietf.org/rfc/rfc2141.txt. Even though you can override the URN generation, I think the default behavior should not generate invalid URNs.

evshi avatar Nov 03 '15 01:11 evshi

A unit test would help here, outlining expected handling, current problem.

cowtowncoder avatar Dec 29 '15 23:12 cowtowncoder