Skip to content

Commit c25d371

Browse files
committed
runtime-v2: fix issue with old agents cant parse process configuration
1 parent fe76954 commit c25d371

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

runtime/v2/model/src/main/java/com/walmartlabs/concord/runtime/v2/model/EventConfiguration.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* Licensed under the Apache License, Version 2.0 (the "License");
1010
* you may not use this file except in compliance with the License.
1111
* You may obtain a copy of the License at
12-
*
12+
*
1313
* http://www.apache.org/licenses/LICENSE-2.0
14-
*
14+
*
1515
* Unless required by applicable law or agreed to in writing, software
1616
* distributed under the License is distributed on an "AS IS" BASIS,
1717
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -20,6 +20,7 @@
2020
* =====
2121
*/
2222

23+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
2324
import com.fasterxml.jackson.annotation.JsonInclude;
2425
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
2526
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@@ -33,6 +34,7 @@
3334
@Value.Immutable
3435
@Value.Style(jdkOnly = true)
3536
@JsonInclude(JsonInclude.Include.NON_EMPTY)
37+
@JsonIgnoreProperties(ignoreUnknown = true)
3638
@JsonSerialize(as = ImmutableEventConfiguration.class)
3739
@JsonDeserialize(as = ImmutableEventConfiguration.class)
3840
public interface EventConfiguration extends Serializable {
@@ -186,7 +188,7 @@ default boolean truncateMeta() {
186188
default Collection<String> metaBlacklist() {
187189
return Collections.emptyList();
188190
}
189-
191+
190192
static ImmutableEventConfiguration.Builder builder() {
191193
return ImmutableEventConfiguration.builder();
192194
}

0 commit comments

Comments
 (0)