swagger-api / swagger-parser

Swagger Spec to Java POJOs
http://swagger.io
Apache License 2.0
782 stars 528 forks source link

Use correct method to read contents of a java.nio.file.Path #1937

Open makkarpov opened 1 year ago

makkarpov commented 1 year ago

toFile() fails when underlying path denotes virtual files (i.e. inside JARs on classpath). readAllBytes works with all filesystems transparently.