We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The example condition is at (but there are other lines just like it): https://github.com/swagger-api/swagger-core/blob/master/modules/swagger-core/src/main/java/io/swagger/core/filter/SpecFilter.java#L140
if (response.getSchema() != null && response.getSchema() instanceof RefProperty) {
As an example:
public List<Foobar> getAll() { ... }
Will filter out the FooBar definition, as the operation's response is an ArrayProperty which does not extend RefProperty.
FooBar
ArrayProperty
RefProperty
public Foobar getAll() { ... }
Retains this property correctly...
The text was updated successfully, but these errors were encountered:
@mtraynham can you please send a PR with a test case? Would help a lot.
Sorry, something went wrong.
@fehguy No problem, should be available shortly.
Merge pull request #1836 from frantuma/ref-1757-composed
3e6b3e6
Ref #1757- Retain refs from Array/Map Property types and ComposedModel when using "removingUnreferencedDefinitions"
frantuma
Successfully merging a pull request may close this issue.
The example condition is at (but there are other lines just like it):
https://github.com/swagger-api/swagger-core/blob/master/modules/swagger-core/src/main/java/io/swagger/core/filter/SpecFilter.java#L140
As an example:
Will filter out the
FooBar
definition, as the operation's response is anArrayProperty
which does not extendRefProperty
.Retains this property correctly...
The text was updated successfully, but these errors were encountered: