mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 09:57:08 +00:00
fix NPE in rust server generator (#5304)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user