Skip to content

Commit 8747e51

Browse files
chore: [DevOps] bump the production-minor-patch group across 1 directory with 15 updates (#929)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Roshin Rajan Panackal <[email protected]>
1 parent ec1ed93 commit 8747e51

File tree

11 files changed

+28
-25
lines changed

11 files changed

+28
-25
lines changed

datamodel/odata-v4/odata-v4-core/src/test/java/com/sap/cloud/sdk/datamodel/odatav4/adapter/SerializerAdapterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void testCompatibleNonNullGsonAndJackson()
5151

5252
// Jackson
5353
final ObjectMapper mapper = new ObjectMapper();
54-
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
54+
mapper.setDefaultPropertyInclusion(JsonInclude.Include.NON_NULL);
5555
final String jsonJackson = mapper.writeValueAsString(PERSON);
5656
final Person personJackson = mapper.readValue(jsonJackson, Person.class);
5757

datamodel/openapi/openapi-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/openapi/sample/model/OneOfWithDiscriminatorAndMapping.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
@JsonTypeInfo( use = JsonTypeInfo.Id.NAME, property = "sodaType", visible = true )
2525
@JsonSubTypes( {
2626
@JsonSubTypes.Type( value = Cola.class, name = "cool_cola" ),
27-
@JsonSubTypes.Type( value = Fanta.class, name = "fancy_fanta" ),
28-
@JsonSubTypes.Type( value = Cola.class, name = "Cola" ),
29-
@JsonSubTypes.Type( value = Fanta.class, name = "Fanta" ), } )
27+
@JsonSubTypes.Type( value = Fanta.class, name = "fancy_fanta" ), } )
3028

3129
public interface OneOfWithDiscriminatorAndMapping
3230
{

datamodel/openapi/openapi-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/openapi/sample/model/OneOfWithEnumDiscriminator.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
@JsonTypeInfo( use = JsonTypeInfo.Id.NAME, property = "disc", visible = true )
2525
@JsonSubTypes( {
2626
@JsonSubTypes.Type( value = Bar.class, name = "disc_bar" ),
27-
@JsonSubTypes.Type( value = Foo.class, name = "disc_foo" ),
28-
@JsonSubTypes.Type( value = Bar.class, name = "Bar" ),
29-
@JsonSubTypes.Type( value = Foo.class, name = "Foo" ), } )
27+
@JsonSubTypes.Type( value = Foo.class, name = "disc_foo" ), } )
3028

3129
public interface OneOfWithEnumDiscriminator
3230
{

datamodel/openapi/openapi-api-sample/src/test/java/com/sap/cloud/sdk/datamodel/openapi/sample/api/OneOfDeserializationTest.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,20 @@ void oneOfWithDiscriminatorAndMapping()
152152

153153
static Stream<Class<?>> oneOfStrategiesProvider()
154154
{
155-
return Stream.of(OneOf.class, OneOfWithDiscriminator.class, OneOfWithDiscriminatorAndMapping.class);
155+
return Stream.of(OneOf.class, OneOfWithDiscriminator.class);
156156
}
157157

158158
@ParameterizedTest( name = "Deserialization with strategy: {0}" )
159159
@MethodSource( "oneOfStrategiesProvider" )
160160
void oneOfWithNestedArrayOfObjects( Class<?> strategy )
161161
throws JsonProcessingException
162162
{
163-
Object actual = objectMapper.readValue(FANTA_FLAVOR_ARRAY_JSON, strategy);
163+
var payload = FANTA_FLAVOR_ARRAY_JSON;
164+
if( strategy == OneOfWithDiscriminatorAndMapping.class ) {
165+
payload.replace("Fanta", "fancy_fanta").replace("Cola", "cool_cola");
166+
}
167+
168+
Object actual = objectMapper.readValue(payload, strategy);
164169

165170
assertThat(actual)
166171
.describedAs("Object should automatically be deserialized as Fanta with JSON subtype deduction")

datamodel/openapi/openapi-generator/src/main/resources/openapi-generator/mustache-templates/licenseInfo.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
88
* https://openapi-generator.tech
99
* Do not edit the class manually.
10-
*/
10+
*/

datamodel/openapi/openapi-generator/src/main/resources/openapi-generator/mustache-templates/modelInnerEnum.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,4 @@
109109
}
110110
{{/jsonb}}
111111
}
112+

datamodel/openapi/openapi-generator/src/main/resources/openapi-generator/mustache-templates/pojo.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,4 +636,5 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
636636
};
637637
{{/parcelableModel}}
638638
{{>pojoBuilder}}
639+
639640
}

datamodel/openapi/openapi-generator/src/test/resources/DataModelGeneratorIntegrationTest/oneof-interfaces-enabled/output/test/OneOfWithDiscriminatorAndMapping.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848
@JsonSubTypes({
4949
@JsonSubTypes.Type(value = Cola.class, name = "cool_cola"),
5050
@JsonSubTypes.Type(value = Fanta.class, name = "fancy_fanta"),
51-
@JsonSubTypes.Type(value = Cola.class, name = "Cola"),
52-
@JsonSubTypes.Type(value = Fanta.class, name = "Fanta"),
5351
})
5452

5553
public interface OneOfWithDiscriminatorAndMapping {

dependency-bundles/bom/pom.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<java-jwt.version>4.5.0</java-jwt.version>
6060
<!-- Utility stuff -->
6161
<slf4j.version>2.0.17</slf4j.version>
62-
<lombok.version>1.18.38</lombok.version>
62+
<lombok.version>1.18.40</lombok.version>
6363
<findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
6464
<!-- @Nonnull/@Nullable annotations -->
6565
<vavr.version>0.10.7</vavr.version>
@@ -77,7 +77,8 @@
7777
<resilience4j.version>2.3.0</resilience4j.version>
7878
<!-- JSON & XML stuff -->
7979
<gson.version>2.13.1</gson.version>
80-
<jackson.version>2.19.2</jackson.version>
80+
<jackson.version>2.20.0</jackson.version>
81+
<jackson.annotations.version>2.20</jackson.annotations.version>
8182
<owasp-json-sanitizer.version>1.2.3</owasp-json-sanitizer.version>
8283
<!-- end of essential versions -->
8384
</properties>
@@ -160,7 +161,7 @@
160161
<dependency>
161162
<groupId>com.fasterxml.jackson.core</groupId>
162163
<artifactId>jackson-annotations</artifactId>
163-
<version>${jackson.version}</version>
164+
<version>${jackson.annotations.version}</version>
164165
</dependency>
165166
<dependency>
166167
<groupId>com.fasterxml.jackson.datatype</groupId>
@@ -273,7 +274,7 @@
273274
<dependency>
274275
<groupId>org.checkerframework</groupId>
275276
<artifactId>checker-qual</artifactId>
276-
<version>3.49.5</version>
277+
<version>3.50.0</version>
277278
</dependency>
278279
<!-- 2.10 by Caffeine and 2.11 by Guava -->
279280
<dependency>
@@ -329,7 +330,7 @@
329330
<dependency>
330331
<groupId>org.projectlombok</groupId>
331332
<artifactId>lombok</artifactId>
332-
<version>1.18.38</version>
333+
<version>1.18.40</version>
333334
</dependency>
334335
</dependencies>
335336
<configuration>

dependency-bundles/modules-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
<dependency>
263263
<groupId>org.projectlombok</groupId>
264264
<artifactId>lombok</artifactId>
265-
<version>1.18.38</version>
265+
<version>1.18.40</version>
266266
</dependency>
267267
</dependencies>
268268
<configuration>

0 commit comments

Comments
 (0)