forked from loafle/openapi-generator-original
fix the value for @Generated java annotation (#4366)
com.my.Generator.class.toString() returns "class com.my.Generator", and this value is then used in the javax.annotation.Generated annotation like that: @Generated(value = "class com.my.Generator"). Should use Generator.class.getName() instead, so we end up with @Generated(value = "com.my.Generator")
This commit is contained in:
parent
f4fb79822f
commit
bf50ea1366
@ -113,7 +113,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
|
||||
config.processOpts();
|
||||
config.preprocessSwagger(swagger);
|
||||
config.additionalProperties().put("generatedDate", DateTime.now().toString());
|
||||
config.additionalProperties().put("generatorClass", config.getClass().toString());
|
||||
config.additionalProperties().put("generatorClass", config.getClass().getName());
|
||||
config.additionalProperties().put("inputSpec", config.getInputSpec());
|
||||
if (swagger.getVendorExtensions() != null) {
|
||||
config.vendorExtensions().putAll(swagger.getVendorExtensions());
|
||||
|
Loading…
x
Reference in New Issue
Block a user