mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-30 20:50:53 +00:00
fix NPE in rust server generator (#5304)
This commit is contained in:
parent
466bacb308
commit
fe4cecba02
@ -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.");
|
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 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);
|
additionalProperties.put("apiUsesUuid", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user