swagger-parser icon indicating copy to clipboard operation
swagger-parser copied to clipboard

ExternalRefProcess.processComposedSchema not processing inline schema definitions for oneOf's and anyOf's

Open acourouppe opened this issue 1 year ago • 0 comments

Hi, I'm using the following version of the swagger-parser-v3 to resolve my api. <groupId>io.swagger.parser.v3</groupId> <artifactId>swagger-parser-v3</artifactId> 2.1.22

When referencing schemas in oneOf's inline schema definitions properties, the resolved yaml file doesn't contain the referenced schema definitions.

image

For the complete example, see the content of the following zip. openapi.zip

This is due to a duplicated conditional line in the class ExternalRefProcess and method processComposedSchema. image

The same duplicated line is present for the anyOfs and is probably incorrect as well.

acourouppe avatar Jun 17 '24 09:06 acourouppe