swagger-api / swagger-parser

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

SWG-9288 utilizing safe url resolver for OAS 3.0 parsing #2032

Closed MiloszTarka closed 8 months ago

MiloszTarka commented 9 months ago

Addresses: https://github.com/swagger-api/swagger-parser/issues/2030

This PR makes swagger-parser to utilizes safeUrlResolver when resolving OpenAPI 3.0 definitions.

The reason behind this change is described deeply under the following PR: https://github.com/swagger-api/swagger-parser/pull/1910

The $refs are checked in ResolverCache class, in loadRef method.