Skip to content

Commit

Permalink
Fix bug in "HidePathsAndDefinitionsByRolesDocumentFilter"
Browse files Browse the repository at this point in the history
  • Loading branch information
unchase authored and Chebotov Nikolay committed Jul 6, 2020
1 parent 2079279 commit c92b506
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

These are the changes to each version that has been released on the [nuget](https://www.nuget.org/packages/Unchase.Swashbuckle.AspNetCore.Extensions/).

## v2.3.5 `(2020-07-06)`

- [x] Fix bug in `HidePathsAndDefinitionsByRolesDocumentFilter`

## v2.3.4 `(2020-06-11)`

- [x] Fix [bug #10](https://github.com/unchase/Unchase.Swashbuckle.AspNetCore.Extensions/issues/10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ private static List<string> GetRequiredDefinitions(IDictionary<string, OpenApiSc
}
}
}
else if (responseSchemaPropertySchema != null)
{
result.AddRange(GetRequiredDefinitions(schemas, schemaProperty.Value?.Reference));
}
}

if (schemaProperty.Value?.Items?.Reference?.Id != null)
Expand Down

0 comments on commit c92b506

Please sign in to comment.