Skip to content

Conversation

f-atwi
Copy link

@f-atwi f-atwi commented Jun 9, 2025

On certain cases, the global components of the openapi are injected in the content of schemas of response bodies of some paths

Fixes #2029 .

Changes proposed in this pull request:

  • Removing the line that injects the components

issue spec-first#2029
On certain cases, the global components of the openapi are injected in the content of schemas of response bodies of some paths
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure what is the purpose of this line.

As far as I know, a global component is to be injected if there is a reference to it. Why is there an injection of all components to the schema?

@f-atwi f-atwi changed the title Do not inject components in schemas of response bodies (# Do not inject components in schemas of response bodies Jun 9, 2025
@coveralls
Copy link

Coverage Status

coverage: 94.353% (-0.001%) from 94.354%
when pulling 2d6f359 on f-atwi:bugfix/openapi-injected-components-in-responses
into a1c53db on spec-first:main.

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 this pull request may close these issues.

openapi.json cannot be delivered after calling an endpoint with a $ref request body

2 participants