forked from loafle/openapi-generator-original
Remove unused method (#17042)
This commit is contained in:
parent
40b1d37368
commit
2b9ee8c5f6
@ -505,17 +505,6 @@ public class PostmanCollectionCodegen extends DefaultCodegen implements CodegenC
|
||||
return input.replace("\"", "\\\"");
|
||||
}
|
||||
|
||||
public String doubleCurlyBraces(String str) {
|
||||
|
||||
// remove doublebraces first
|
||||
String s = str.replace("{{", "{").replace("}}", "}");
|
||||
// change all singlebraces to doublebraces
|
||||
s = s.replace("{", "{{").replace("}", "}}");
|
||||
|
||||
return s;
|
||||
|
||||
}
|
||||
|
||||
// convert path from /users/{id} to /users/:id
|
||||
String replacesBracesInPath(String path) {
|
||||
|
||||
|
@ -364,20 +364,6 @@ public class PostmanCollectionCodegenTest {
|
||||
assertFileNotContains(path, "\"auth\": { \"type\": \"apikey\", \"apikey\": [");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void doubleCurlyBraces() {
|
||||
String str = "/api/{var}/archive";
|
||||
|
||||
assertEquals("/api/{{var}}/archive", new PostmanCollectionCodegen().doubleCurlyBraces(str));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void doubleCurlyBracesNoChanges() {
|
||||
String str = "/api/{{var}}/archive";
|
||||
|
||||
assertEquals("/api/{{var}}/archive", new PostmanCollectionCodegen().doubleCurlyBraces(str));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void extractExampleByName() {
|
||||
String str = "#/components/examples/get-user-basic";
|
||||
|
Loading…
x
Reference in New Issue
Block a user