forked from loafle/openapi-generator-original
log message for writeOptional, better handling of model name for php
This commit is contained in:
parent
6962947611
commit
7b42624a86
@ -2279,6 +2279,8 @@ public class DefaultCodegen {
|
||||
}
|
||||
if(!new File(folder).exists()) {
|
||||
supportingFiles.add(supportingFile);
|
||||
} else {
|
||||
LOGGER.info("Skipped overwriting " + supportingFile.destinationFilename + " as the file already exists in " + folder);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -366,6 +366,7 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
|
||||
// model name cannot use reserved keyword
|
||||
if (reservedWords.contains(name)) {
|
||||
LOGGER.warn(name + " (reserved word) cannot be used as model name. Renamed to " + camelize("object_" + name));
|
||||
name = "object_" + name; // e.g. return => ObjectReturn (after camelize)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user