Skip to content

Commit

Permalink
Cannot override servers in api-docs.yaml using OpenApiCustomiser; Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bnasslahsen committed Jun 30, 2021
1 parent edf76e8 commit 088eb29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ private List<Server> resolveProperties(List<Server> servers) {
servers.forEach(server -> {
resolveProperty(server::getUrl, server::url, propertyResolverUtils);
resolveProperty(server::getDescription, server::description, propertyResolverUtils);
if(CollectionUtils.isEmpty(server.getVariables()))
server.setVariables(null);
});
return servers;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"servers": [
{
"url": "http://test.toto.com",
"description": "toto desc",
"variables": {}
"description": "toto desc"
}
],
"paths": {
Expand Down

0 comments on commit 088eb29

Please sign in to comment.