jackson-module-jsonSchema
jackson-module-jsonSchema copied to clipboard
Default visitor context generates invalid URNs
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.
A unit test would help here, outlining expected handling, current problem.