mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-19 22:39:04 +00:00
make JsonAnySetter for dynamic properties "builder" style
This commit is contained in:
@@ -323,10 +323,12 @@ public class CodegenConfigurator {
|
||||
}
|
||||
|
||||
@JsonAnySetter
|
||||
public void addDynamicProperty(String name, Object value) {
|
||||
public CodegenConfigurator addDynamicProperty(String name, Object value) {
|
||||
if (value instanceof String) {
|
||||
dynamicProperties.put(name, (String) value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonAnyGetter
|
||||
|
||||
Reference in New Issue
Block a user