@@ -1893,7 +1893,7 @@ public CodegenModel fromModel(String name, Schema schema) {
1893
1893
}
1894
1894
}
1895
1895
1896
- if (composed .getRequired () != null ) {
1896
+ if (composed .getRequired () != null ) {
1897
1897
required .addAll (composed .getRequired ());
1898
1898
}
1899
1899
addVars (m , unaliasPropertySchema (properties ), required , unaliasPropertySchema (allProperties ), allRequired );
@@ -2002,7 +2002,7 @@ protected void addProperties(Map<String, Schema> properties, List<String> requir
2002
2002
addProperties (properties , required , component );
2003
2003
}
2004
2004
2005
- if (schema .getRequired () != null ) {
2005
+ if (schema .getRequired () != null ) {
2006
2006
required .addAll (schema .getRequired ());
2007
2007
}
2008
2008
@@ -2508,15 +2508,15 @@ protected ApiResponse findMethodResponse(ApiResponses responses) {
2508
2508
/**
2509
2509
* Set op's returnBaseType, returnType, examples etc.
2510
2510
*
2511
- * @param operation endpoint Operation
2512
- * @param schemas a map of the schemas in the openapi spec
2513
- * @param op endpoint CodegenOperation
2511
+ * @param operation endpoint Operation
2512
+ * @param schemas a map of the schemas in the openapi spec
2513
+ * @param op endpoint CodegenOperation
2514
2514
* @param methodResponse the default ApiResponse for the endpoint
2515
2515
*/
2516
2516
protected void handleMethodResponse (Operation operation ,
2517
- Map <String , Schema > schemas ,
2518
- CodegenOperation op ,
2519
- ApiResponse methodResponse ) {
2517
+ Map <String , Schema > schemas ,
2518
+ CodegenOperation op ,
2519
+ ApiResponse methodResponse ) {
2520
2520
Schema responseSchema = ModelUtils .unaliasSchema (this .openAPI , ModelUtils .getSchemaFromResponse (methodResponse ));
2521
2521
2522
2522
if (responseSchema != null ) {
@@ -4101,7 +4101,7 @@ public String sanitizeName(String name, String removeCharRegEx) {
4101
4101
*
4102
4102
* @param name string to be sanitize
4103
4103
* @param removeCharRegEx a regex containing all char that will be removed
4104
- * @param exceptionList a list of matches which should not be sanitized (i.e expections)
4104
+ * @param exceptionList a list of matches which should not be sanitized (i.e expections)
4105
4105
* @return sanitized string
4106
4106
*/
4107
4107
@ SuppressWarnings ("static-method" )
@@ -4529,8 +4529,8 @@ public boolean hasFormParameter(OpenAPI openAPI, Operation operation) {
4529
4529
4530
4530
for (String consume : consumesInfo ) {
4531
4531
if (consume != null &&
4532
- (consume .toLowerCase (Locale .ROOT ).startsWith ("application/x-www-form-urlencoded" ) ||
4533
- consume .toLowerCase (Locale .ROOT ).startsWith ("multipart" ))) {
4532
+ (consume .toLowerCase (Locale .ROOT ).startsWith ("application/x-www-form-urlencoded" ) ||
4533
+ consume .toLowerCase (Locale .ROOT ).startsWith ("multipart" ))) {
4534
4534
return true ;
4535
4535
}
4536
4536
}
@@ -5022,7 +5022,6 @@ public CodegenParameter fromRequestBody(RequestBody body, Set<String> imports, S
5022
5022
codegenParameter .pattern = codegenProperty .pattern ;
5023
5023
5024
5024
5025
-
5026
5025
if (codegenProperty .complexType != null ) {
5027
5026
imports .add (codegenProperty .complexType );
5028
5027
}
0 commit comments