Skip to content

Commit dcb5a74

Browse files
committed
CAMEL-10575: regenerate SnakeYAMLDataFormatConfiguration
1 parent 20e2622 commit dcb5a74

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

components-starter/camel-snakeyaml-starter/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
*/
1717
package org.apache.camel.component.snakeyaml.springboot;
1818

19+
import java.util.List;
1920
import org.apache.camel.component.snakeyaml.SnakeYAMLDataFormat;
2021
import org.apache.camel.model.dataformat.YAMLLibrary;
22+
import org.apache.camel.model.dataformat.YAMLTypeFilterDefinition;
2123
import org.springframework.boot.context.properties.ConfigurationProperties;
2224

2325
/**
@@ -61,6 +63,14 @@ public class SnakeYAMLDataFormatConfiguration {
6163
* style.
6264
*/
6365
private Boolean prettyFlow = false;
66+
/**
67+
* Allow any class to be un-marshaled
68+
*/
69+
private Boolean allowAnyType = false;
70+
/**
71+
* Set the types SnakeYAML is allowed to un-marshall
72+
*/
73+
private List<YAMLTypeFilterDefinition> typeFilter;
6474

6575
public YAMLLibrary getLibrary() {
6676
return library;
@@ -126,4 +136,20 @@ public Boolean getPrettyFlow() {
126136
public void setPrettyFlow(Boolean prettyFlow) {
127137
this.prettyFlow = prettyFlow;
128138
}
139+
140+
public Boolean getAllowAnyType() {
141+
return allowAnyType;
142+
}
143+
144+
public void setAllowAnyType(Boolean allowAnyType) {
145+
this.allowAnyType = allowAnyType;
146+
}
147+
148+
public List<YAMLTypeFilterDefinition> getTypeFilter() {
149+
return typeFilter;
150+
}
151+
152+
public void setTypeFilter(List<YAMLTypeFilterDefinition> typeFilter) {
153+
this.typeFilter = typeFilter;
154+
}
129155
}

0 commit comments

Comments
 (0)