mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 14:40:53 +00:00
minor formatting change (#7503)
This commit is contained in:
parent
7b1563326a
commit
5dffbabc74
@ -40,10 +40,10 @@ import org.slf4j.LoggerFactory;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.regex.*;
|
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
import java.util.regex.Matcher;
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static org.openapitools.codegen.utils.OnceLogger.once;
|
|
||||||
import static org.openapitools.codegen.utils.StringUtils.camelize;
|
import static org.openapitools.codegen.utils.StringUtils.camelize;
|
||||||
import static org.openapitools.codegen.utils.StringUtils.underscore;
|
import static org.openapitools.codegen.utils.StringUtils.underscore;
|
||||||
|
|
||||||
@ -329,7 +329,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String getHelp() {
|
public String getHelp() {
|
||||||
return "Generates a Rust client/server library (beta) using the swagger-codegen project.";
|
return "Generates a Rust client/server library (beta) using the openapi-generator project.";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -1544,9 +1544,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
// the user than the alternative.
|
// the user than the alternative.
|
||||||
LOGGER.warn("Ignoring additionalProperties (see https://github.com/OpenAPITools/openapi-generator/issues/318) alongside defined properties");
|
LOGGER.warn("Ignoring additionalProperties (see https://github.com/OpenAPITools/openapi-generator/issues/318) alongside defined properties");
|
||||||
cm.dataType = null;
|
cm.dataType = null;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
cm.dataType = "std::collections::HashMap<String, " + cm.additionalPropertiesType + ">";
|
cm.dataType = "std::collections::HashMap<String, " + cm.additionalPropertiesType + ">";
|
||||||
}
|
}
|
||||||
} else if (cm.dataType != null) {
|
} else if (cm.dataType != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user