fix NPE in rust server generator (#5304)

This commit is contained in:
William Cheng 2020-02-13 18:25:26 +08:00 committed by GitHub
parent 466bacb308
commit fe4cecba02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1356,7 +1356,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig {
once(LOGGER).warn("4.3.0 has deprecated the use of vendor extensions which don't follow lower-kebab casing standards with x- prefix.");
// If a parameter uses UUIDs, we need to import the UUID package.
if (param.dataType.equals(uuidType)) {
if (uuidType.equals(param.dataType)) {
additionalProperties.put("apiUsesUuid", true);
}