Skip to content

Commit 1b65ef3

Browse files
authored
Update dependecies for CVE (#13834)
* Update dependecies for CVE fix #13772 * Fix schemas
1 parent 4c19c72 commit 1b65ef3

70 files changed

Lines changed: 356 additions & 35 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/openapi-generator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@
377377
<dependency>
378378
<groupId>com.fasterxml.jackson.core</groupId>
379379
<artifactId>jackson-databind</artifactId>
380-
<version>${jackson.version}</version>
380+
<version>${jackson-databind.version}</version>
381381
</dependency>
382382
<dependency>
383383
<groupId>com.fasterxml.jackson.datatype</groupId>

modules/openapi-generator/src/test/java/org/openapitools/codegen/java/helidon/functional/FunctionalHelidonClientBase.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717
package org.openapitools.codegen.java.helidon.functional;
1818

19+
import org.testng.annotations.BeforeClass;
1920
import org.testng.annotations.Test;
2021

2122
import java.nio.file.Files;
@@ -26,6 +27,12 @@
2627
import static org.hamcrest.MatcherAssert.assertThat;
2728

2829
public class FunctionalHelidonClientBase extends FunctionalBase {
30+
31+
@BeforeClass
32+
public void setup() {
33+
generatorName("java-helidon-client");
34+
}
35+
2936
@Test
3037
void buildPetstore() {
3138
generate("src/test/resources/3_0/petstore.yaml");

modules/openapi-generator/src/test/resources/3_0/helidon/petstore-for-testing.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ paths:
7272
- 'write:pets'
7373
- 'read:pets'
7474
requestBody:
75-
$ref: '#/components/schemas/Pet'
75+
content:
76+
application/json:
77+
schema:
78+
$ref: '#/components/schemas/Pet'
7679
/pet/findByStatus:
7780
get:
7881
tags:

modules/openapi-generator/src/test/resources/3_0/helidon/petstore-no-multipart-for-testing.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ paths:
7272
- 'write:pets'
7373
- 'read:pets'
7474
requestBody:
75-
$ref: '#/components/schemas/Pet'
75+
content:
76+
application/json:
77+
schema:
78+
$ref: '#/components/schemas/Pet'
7679
/pet/findByStatus:
7780
get:
7881
tags:

modules/openapi-generator/src/test/resources/3_0/petstore-with-complex-headers.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ paths:
3636
- name: header1
3737
in: header
3838
schema:
39-
$ref: '#/components/requestBodies/Pet'
39+
$ref: '#/components/schemas/Pet'
4040
- name: header2
4141
in: header
4242
schema:
4343
type: array
4444
items:
45-
$ref: '#/components/requestBodies/Pet'
45+
$ref: '#/components/schemas/Pet'
4646
- name: Accept
4747
in: header
4848
schema:

pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,14 +1488,15 @@
14881488
<commons-cli.version>1.4</commons-cli.version>
14891489
<commons-io.version>2.11.0</commons-io.version>
14901490
<commons-lang.version>3.12.0</commons-lang.version>
1491-
<commons-text.version>1.9</commons-text.version>
1491+
<commons-text.version>1.10.0</commons-text.version>
14921492
<diffutils.version>1.3.0</diffutils.version>
14931493
<generex.version>1.0.2</generex.version>
14941494
<git-commit-id-plugin.version>4.9.10</git-commit-id-plugin.version>
14951495
<groovy.version>3.0.9</groovy.version>
14961496
<guava.version>30.1.1-jre</guava.version>
14971497
<handlebars-java.version>4.2.1</handlebars-java.version>
14981498
<jackson-threetenbp.version>2.10.0</jackson-threetenbp.version>
1499+
<jackson-databind.version>2.13.4.2</jackson-databind.version>
14991500
<jackson.version>2.13.4</jackson.version>
15001501
<jacoco.version>0.8.7</jacoco.version>
15011502
<jmustache.version>1.14</jmustache.version>
@@ -1517,7 +1518,7 @@
15171518
<maven-surefire-plugin.version>3.0.0-M6</maven-surefire-plugin.version>
15181519
<openrewrite.version>7.22.0</openrewrite.version>
15191520
<swagger-parser-groupid.version>io.swagger.parser.v3</swagger-parser-groupid.version>
1520-
<swagger-parser.version>2.1.1</swagger-parser.version>
1521+
<swagger-parser.version>2.1.6</swagger-parser.version>
15211522
<testng.version>7.5</testng.version>
15221523
<violations-maven-plugin.version>1.34</violations-maven-plugin.version>
15231524
<wagon-ssh-external.version>3.4.3</wagon-ssh-external.version>

samples/client/petstore/go/go-petstore/api/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,6 +1976,7 @@ components:
19761976
status:
19771977
description: Updated status of the pet
19781978
type: string
1979+
type: object
19791980
uploadFile_request:
19801981
properties:
19811982
additionalMetadata:
@@ -1985,6 +1986,7 @@ components:
19851986
description: file to upload
19861987
format: binary
19871988
type: string
1989+
type: object
19881990
testEnumParameters_request:
19891991
properties:
19901992
enum_form_string_array:
@@ -2004,6 +2006,7 @@ components:
20042006
- -efg
20052007
- (xyz)
20062008
type: string
2009+
type: object
20072010
testEndpointParameters_request:
20082011
properties:
20092012
integer:
@@ -2076,6 +2079,7 @@ components:
20762079
- double
20772080
- number
20782081
- pattern_without_delimiter
2082+
type: object
20792083
testJsonFormData_request:
20802084
properties:
20812085
param:
@@ -2087,6 +2091,7 @@ components:
20872091
required:
20882092
- param
20892093
- param2
2094+
type: object
20902095
uploadFileWithRequiredFile_request:
20912096
properties:
20922097
additionalMetadata:
@@ -2098,6 +2103,7 @@ components:
20982103
type: string
20992104
required:
21002105
- requiredFile
2106+
type: object
21012107
Dog_allOf:
21022108
properties:
21032109
breed:

samples/client/petstore/haskell-http-client/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,6 +1976,7 @@ components:
19761976
status:
19771977
description: Updated status of the pet
19781978
type: string
1979+
type: object
19791980
uploadFile_request:
19801981
properties:
19811982
additionalMetadata:
@@ -1985,6 +1986,7 @@ components:
19851986
description: file to upload
19861987
format: binary
19871988
type: string
1989+
type: object
19881990
testEnumParameters_request:
19891991
properties:
19901992
enum_form_string_array:
@@ -2004,6 +2006,7 @@ components:
20042006
- -efg
20052007
- (xyz)
20062008
type: string
2009+
type: object
20072010
testEndpointParameters_request:
20082011
properties:
20092012
integer:
@@ -2076,6 +2079,7 @@ components:
20762079
- double
20772080
- number
20782081
- pattern_without_delimiter
2082+
type: object
20792083
testJsonFormData_request:
20802084
properties:
20812085
param:
@@ -2087,6 +2091,7 @@ components:
20872091
required:
20882092
- param
20892093
- param2
2094+
type: object
20902095
uploadFileWithRequiredFile_request:
20912096
properties:
20922097
additionalMetadata:
@@ -2098,6 +2103,7 @@ components:
20982103
type: string
20992104
required:
21002105
- requiredFile
2106+
type: object
21012107
Dog_allOf:
21022108
properties:
21032109
breed:

samples/client/petstore/java/apache-httpclient/api/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,7 @@ components:
20372037
status:
20382038
description: Updated status of the pet
20392039
type: string
2040+
type: object
20402041
uploadFile_request:
20412042
properties:
20422043
additionalMetadata:
@@ -2046,6 +2047,7 @@ components:
20462047
description: file to upload
20472048
format: binary
20482049
type: string
2050+
type: object
20492051
testEnumParameters_request:
20502052
properties:
20512053
enum_form_string_array:
@@ -2065,6 +2067,7 @@ components:
20652067
- -efg
20662068
- (xyz)
20672069
type: string
2070+
type: object
20682071
testEndpointParameters_request:
20692072
properties:
20702073
integer:
@@ -2137,6 +2140,7 @@ components:
21372140
- double
21382141
- number
21392142
- pattern_without_delimiter
2143+
type: object
21402144
testJsonFormData_request:
21412145
properties:
21422146
param:
@@ -2148,6 +2152,7 @@ components:
21482152
required:
21492153
- param
21502154
- param2
2155+
type: object
21512156
uploadFileWithRequiredFile_request:
21522157
properties:
21532158
additionalMetadata:
@@ -2159,6 +2164,7 @@ components:
21592164
type: string
21602165
required:
21612166
- requiredFile
2167+
type: object
21622168
Dog_allOf:
21632169
properties:
21642170
breed:

samples/client/petstore/java/feign-no-nullable/api/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,7 @@ components:
20372037
status:
20382038
description: Updated status of the pet
20392039
type: string
2040+
type: object
20402041
uploadFile_request:
20412042
properties:
20422043
additionalMetadata:
@@ -2046,6 +2047,7 @@ components:
20462047
description: file to upload
20472048
format: binary
20482049
type: string
2050+
type: object
20492051
testEnumParameters_request:
20502052
properties:
20512053
enum_form_string_array:
@@ -2065,6 +2067,7 @@ components:
20652067
- -efg
20662068
- (xyz)
20672069
type: string
2070+
type: object
20682071
testEndpointParameters_request:
20692072
properties:
20702073
integer:
@@ -2137,6 +2140,7 @@ components:
21372140
- double
21382141
- number
21392142
- pattern_without_delimiter
2143+
type: object
21402144
testJsonFormData_request:
21412145
properties:
21422146
param:
@@ -2148,6 +2152,7 @@ components:
21482152
required:
21492153
- param
21502154
- param2
2155+
type: object
21512156
uploadFileWithRequiredFile_request:
21522157
properties:
21532158
additionalMetadata:
@@ -2159,6 +2164,7 @@ components:
21592164
type: string
21602165
required:
21612166
- requiredFile
2167+
type: object
21622168
Dog_allOf:
21632169
properties:
21642170
breed:

0 commit comments

Comments
 (0)