RepreZen / KaiZen-OpenApi-Parser

High-performance Parser, Validator, and Java Object Model for OpenAPI 3.x
130 stars 31 forks source link

Fake URL scheme approach is unreliable #219

Closed andylowry closed 6 years ago

andylowry commented 6 years ago

The approach I was using to make special "fake" scheme recognized by the URL constructor was working in some scenarios but not others, for reasons I have been unable to determine.

After much hair-pulling I discovered a different approach, and this appears to be more reliable, namely using the URL(URL, string, URLStreamHandler) constructor. This provides the handler directly, rather than requiring the URL constructor to attempt to locate it dynamically.

andylowry commented 6 years ago

Implemented in #220