|
9 | 9 | * Licensed under the Apache License, Version 2.0 (the "License"); |
10 | 10 | * you may not use this file except in compliance with the License. |
11 | 11 | * You may obtain a copy of the License at |
12 | | - * |
| 12 | + * |
13 | 13 | * http://www.apache.org/licenses/LICENSE-2.0 |
14 | | - * |
| 14 | + * |
15 | 15 | * Unless required by applicable law or agreed to in writing, software |
16 | 16 | * distributed under the License is distributed on an "AS IS" BASIS, |
17 | 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
20 | 20 | * ===== |
21 | 21 | */ |
22 | 22 |
|
| 23 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
23 | 24 | import com.fasterxml.jackson.annotation.JsonInclude; |
24 | 25 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
25 | 26 | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|
33 | 34 | @Value.Immutable |
34 | 35 | @Value.Style(jdkOnly = true) |
35 | 36 | @JsonInclude(JsonInclude.Include.NON_EMPTY) |
| 37 | +@JsonIgnoreProperties(ignoreUnknown = true) |
36 | 38 | @JsonSerialize(as = ImmutableEventConfiguration.class) |
37 | 39 | @JsonDeserialize(as = ImmutableEventConfiguration.class) |
38 | 40 | public interface EventConfiguration extends Serializable { |
@@ -186,7 +188,7 @@ default boolean truncateMeta() { |
186 | 188 | default Collection<String> metaBlacklist() { |
187 | 189 | return Collections.emptyList(); |
188 | 190 | } |
189 | | - |
| 191 | + |
190 | 192 | static ImmutableEventConfiguration.Builder builder() { |
191 | 193 | return ImmutableEventConfiguration.builder(); |
192 | 194 | } |
|
0 commit comments