Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
acourouppe opened this issue Jun 17, 2024 · 0 comments · May be fixed by #2123

Comments

@acourouppe
Copy link

acourouppe commented Jun 17, 2024

Hi,
I'm using the following version of the swagger-parser-v3 to resolve my api.

io.swagger.parser.v3
swagger-parser-v3
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.

fpaul-1A added a commit to fpaul-1A/swagger-parser that referenced this issue Oct 4, 2024
fpaul-1A added a commit to fpaul-1A/swagger-parser that referenced this issue Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant