forked from loafle/openapi-generator-original
issue fix: when security.scope. description has a precedent | ,newline in markdown, generated api will break as an extra newline is added.
This commit is contained in:
parent
bf17a91275
commit
a772a855ee
@ -2403,7 +2403,7 @@ public class DefaultCodegen {
|
||||
for(Map.Entry<String, String> scopeEntry : oauth2Definition.getScopes().entrySet()) {
|
||||
Map<String, Object> scope = new HashMap<String, Object>();
|
||||
scope.put("scope", scopeEntry.getKey());
|
||||
scope.put("description", scopeEntry.getValue());
|
||||
scope.put("description", escapeText(scopeEntry.getValue()));
|
||||
|
||||
count += 1;
|
||||
if (count < numScopes) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user