Skip to content

Commit

Permalink
Adjust to updated libs
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjasper committed Jan 2, 2024
1 parent 4ab21d6 commit e21f21c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.io.File;
import java.io.IOException;
import java.io.Writer;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Set;
Expand Down Expand Up @@ -354,9 +355,9 @@ public void processOpts() {
writePropertyBack(USE_PROTECTED_FIELDS, this.useProtectedFields);


this.additionalProperties.put("indent4", new IndentedLambda(4, " "));
this.additionalProperties.put("indent4", new IndentedLambda(4, " ", true, true));
this.additionalProperties.put("newLine4", new NewLineIndent(4, " "));
this.additionalProperties.put("indent8", new IndentedLambda(8, " "));
this.additionalProperties.put("indent8", new IndentedLambda(8, " ", true, true));
this.additionalProperties.put("newLine8", new NewLineIndent(8, " "));
this.additionalProperties.put("toOneLine", new FormatToOneLine());
this.additionalProperties.put("trimAndIndent4", new TrimAndIndent(4, " "));
Expand All @@ -381,6 +382,9 @@ private boolean needApiUtil() {
*/
@Override
public CodegenOperation fromOperation(String path, String httpMethod, Operation operation, List<Server> servers) {
if (operation.getExtensions() == null) {
operation.setExtensions(new LinkedHashMap<>());
}
final CodegenOperation codegenOperation = super.fromOperation(path, httpMethod, operation, servers);
if (this.addServletRequest) {
final CodegenParameter codegenParameter = new CodegenParameter() {
Expand Down

0 comments on commit e21f21c

Please sign in to comment.