Skip to content

Commit 9d7fe7c

Browse files
committed
update dependencies (Jackson to 2.18.2, fix quotes in tests)
1 parent 153070c commit 9d7fe7c

File tree

147 files changed

+1582
-1582
lines changed

Some content is hidden

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

147 files changed

+1582
-1582
lines changed

modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/test/AnchorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void testIssue146() {
4848
" content:\n" +
4949
" '*/*':\n" +
5050
" schema:\n" +
51-
" $ref: '#/components/schemas/OperationType'\n" +
51+
" $ref: \"#/components/schemas/OperationType\"\n" +
5252
"components:\n" +
5353
" schemas:\n" +
5454
" OperationType:\n" +

modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/test/OAI31DeserializationTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,8 @@ public void testSiblingsReferenceJSONSchema5() {
608608
" type: object\n" +
609609
" PatientPerson:\n" +
610610
" allOf:\n" +
611-
" - $ref: '#/components/schemas/Person'\n" +
612-
" - $ref: '#/components/schemas/Patient'\n" +
611+
" - $ref: \"#/components/schemas/Person\"\n" +
612+
" - $ref: \"#/components/schemas/Patient\"\n" +
613613
" unevaluatedProperties: false\n" +
614614
" $ref: ./ex.json#patient-person";
615615
SwaggerParseResult result = new OpenAPIV3Parser().readContents( refSibling , null, options);
@@ -883,11 +883,11 @@ public void testNotDefaultSchemaType() {
883883
" type: object\n" +
884884
" properties:\n" +
885885
" any_value:\n" +
886-
" $ref: '#/components/schemas/AnyValue'\n" +
886+
" $ref: \"#/components/schemas/AnyValue\"\n" +
887887
" any_value_with_desc:\n" +
888-
" $ref: '#/components/schemas/AnyValueWithDesc'\n" +
888+
" $ref: \"#/components/schemas/AnyValueWithDesc\"\n" +
889889
" any_value_nullable:\n" +
890-
" $ref: '#/components/schemas/AnyValueNullable'\n" +
890+
" $ref: \"#/components/schemas/AnyValueNullable\"\n" +
891891
" AnyValueModelInline:\n" +
892892
" description: test any value inline\n" +
893893
" type: object\n" +

modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/test/OAIDeserializationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ public void testDeserializeYamlDefinitionMissingSchema_Issue1951() throws Except
109109
// content:
110110
// application/json:
111111
// schema:
112-
// $ref: '#/components/schemas/ThingRequest'
112+
// $ref: \"#/components/schemas/ThingRequest\"
113113
// responses:
114114
// "401":
115-
// $ref: '#/components/responses/ErrorObj'
115+
// $ref: \"#/components/responses/ErrorObj\"
116116
// default:
117117
// description: Default response is just a string
118118
// content:
@@ -126,7 +126,7 @@ public void testDeserializeYamlDefinitionMissingSchema_Issue1951() throws Except
126126
// content:
127127
// application/json:
128128
// schema:
129-
// $ref: '#/components/schemas/NotAddedYet'
129+
// $ref: \"#/components/schemas/NotAddedYet\"
130130

131131
ParseOptions options = new ParseOptions();
132132
options.setResolve(true);

modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/test/OpenAPIResolverTest.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -578,19 +578,19 @@ public void testSelfReferenceResolution()throws Exception {
578578
" content:\n" +
579579
" 'application/json':\n" +
580580
" schema:\n" +
581-
" $ref: '#/components/schemas/SchemaB'\n" +
581+
" $ref: \"#/components/schemas/SchemaB\"\n" +
582582
"components:\n" +
583583
" schemas:\n" +
584584
" SchemaA:\n" +
585585
" properties:\n" +
586586
" name:\n" +
587587
" type: string\n" +
588588
" modelB:\n" +
589-
" $ref: '#/components/schemas/SchemaB'\n" +
589+
" $ref: \"#/components/schemas/SchemaB\"\n" +
590590
" SchemaB:\n" +
591591
" properties:\n" +
592592
" modelB:\n" +
593-
" $ref: '#/components/schemas/SchemaB'";
593+
" $ref: \"#/components/schemas/SchemaB\"";
594594

595595
ParseOptions options = new ParseOptions();
596596
options.setResolve(true);
@@ -620,7 +620,7 @@ public void testIssue85() {
620620
" name: \"body\"\n" +
621621
" required: false\n" +
622622
" schema: \n" +
623-
" $ref: '#/components/Schemas/StructureA'\n" +
623+
" $ref: \"#/components/Schemas/StructureA\"\n" +
624624
"components: \n" +
625625
" schemas:\n" +
626626
" StructureA: \n" +
@@ -631,7 +631,7 @@ public void testIssue85() {
631631
" arrayOfOtherType: \n" +
632632
" type: array\n" +
633633
" items: \n" +
634-
" $ref: '#/definitions/StructureB'\n" +
634+
" $ref: \"#/definitions/StructureB\"\n" +
635635
" StructureB: \n" +
636636
" type: object\n" +
637637
" properties: \n" +
@@ -796,7 +796,7 @@ public void selfReferenceTest() {
796796
" content:\n" +
797797
" application/json:\n" +
798798
" schema:\n" +
799-
" $ref: '#/components/schemas/ModelA'\n" +
799+
" $ref: \"#/components/schemas/ModelA\"\n" +
800800
" responses:\n" +
801801
" default:\n" +
802802
" description: Default response\n" +
@@ -806,7 +806,7 @@ public void selfReferenceTest() {
806806
" content:\n" +
807807
" application/json:\n" +
808808
" schema:\n" +
809-
" $ref: '#/components/schemas/ModelB'\n" +
809+
" $ref: \"#/components/schemas/ModelB\"\n" +
810810
" responses:\n" +
811811
" default:\n" +
812812
" description: Default response\n" +
@@ -816,7 +816,7 @@ public void selfReferenceTest() {
816816
" content:\n" +
817817
" application/json:\n" +
818818
" schema:\n" +
819-
" $ref: '#/components/schemas/ModelC'\n" +
819+
" $ref: \"#/components/schemas/ModelC\"\n" +
820820
" responses:\n" +
821821
" default:\n" +
822822
" description: Default response\n" +
@@ -828,7 +828,7 @@ public void selfReferenceTest() {
828828
" content:\n" +
829829
" '*/*':\n" +
830830
" schema:\n" +
831-
" $ref: '#/components/schemas/ModelA'\n" +
831+
" $ref: \"#/components/schemas/ModelA\"\n" +
832832
" /selfRefE:\n" +
833833
" get:\n" +
834834
" responses:\n" +
@@ -839,7 +839,7 @@ public void selfReferenceTest() {
839839
" schema:\n" +
840840
" type: array\n" +
841841
" items:\n" +
842-
" $ref: '#/components/schemas/ModelA'\n" +
842+
" $ref: \"#/components/schemas/ModelA\"\n" +
843843
"info:\n" +
844844
" version: ''\n" +
845845
" title: ''\n" +
@@ -848,15 +848,15 @@ public void selfReferenceTest() {
848848
" ModelA:\n" +
849849
" properties:\n" +
850850
" modelB:\n" +
851-
" $ref: '#/components/schemas/ModelB'\n" +
851+
" $ref: \"#/components/schemas/ModelB\"\n" +
852852
" ModelB:\n" +
853853
" properties:\n" +
854854
" modelB:\n" +
855-
" $ref: '#/components/schemas/ModelB'\n" +
855+
" $ref: \"#/components/schemas/ModelB\"\n" +
856856
" ModelC:\n" +
857857
" properties:\n" +
858858
" modelA:\n" +
859-
" $ref: '#/components/schemas/ModelA'";
859+
" $ref: \"#/components/schemas/ModelA\"";
860860

861861
ParseOptions options = new ParseOptions();
862862
options.setResolve(true);
@@ -1315,7 +1315,7 @@ public void testIssue291() {
13151315
" get:\n" +
13161316
" description: test get\n" +
13171317
" parameters:\n" +
1318-
" - $ref: '#/components/parameters/testParam'\n" +
1318+
" - $ref: \"#/components/parameters/testParam\"\n" +
13191319
" responses:\n" +
13201320
" default:\n" +
13211321
" description: test response\n" +

modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/test/OpenAPIV31ParserPathItemTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ public void testPathItemBasicRef() throws Exception {
253253
" \"200\":\n" +
254254
" description: OK\n" +
255255
" /internalref:\n" +
256-
" $ref: '#/components/pathItems/InternalRef'\n" +
256+
" $ref: \"#/components/pathItems/InternalRef\"\n" +
257257
" /internalreftoexternal:\n" +
258-
" $ref: '#/components/pathItems/InternalRefToExternal'\n" +
258+
" $ref: \"#/components/pathItems/InternalRefToExternal\"\n" +
259259
" /internal:\n" +
260260
" get:\n" +
261261
" description: Internal PathItem\n" +
@@ -314,7 +314,7 @@ public void testPathItemExternalInternalNestedRef() throws Exception {
314314
" \"200\":\n" +
315315
" description: OK\n" +
316316
" /internalref:\n" +
317-
" $ref: '#/components/pathItems/InternalRef'\n" +
317+
" $ref: \"#/components/pathItems/InternalRef\"\n" +
318318
" /internal:\n" +
319319
" get:\n" +
320320
" description: Internal PathItem\n" +

modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/test/OpenAPIV3ParserTest.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public void testIssue1643_True() throws Exception{
325325
" content:\n" +
326326
" application/json:\n" +
327327
" schema:\n" +
328-
" $ref: '#/components/schemas/Person'\n" +
328+
" $ref: \"#/components/schemas/Person\"\n" +
329329
"components:\n" +
330330
" schemas:\n" +
331331
" Person:\n" +
@@ -336,7 +336,7 @@ public void testIssue1643_True() throws Exception{
336336
" name:\n" +
337337
" type: string\n" +
338338
" employee:\n" +
339-
" $ref: '#/components/schemas/Employee'";
339+
" $ref: \"#/components/schemas/Employee\"";
340340
SwaggerParseResult result = new OpenAPIV3Parser().readContents(issue1643, null, options);
341341

342342
Assert.assertNotNull(result);
@@ -369,7 +369,7 @@ public void testIssue1643_False() throws Exception{
369369
" content:\n" +
370370
" application/json:\n" +
371371
" schema:\n" +
372-
" $ref: '#/components/schemas/Person'\n" +
372+
" $ref: \"#/components/schemas/Person\"\n" +
373373
"components:\n" +
374374
" schemas:\n" +
375375
" Person:\n" +
@@ -380,7 +380,7 @@ public void testIssue1643_False() throws Exception{
380380
" name:\n" +
381381
" type: string\n" +
382382
" employee:\n" +
383-
" $ref: '#/components/schemas/Employee'";
383+
" $ref: \"#/components/schemas/Employee\"";
384384
SwaggerParseResult result = new OpenAPIV3Parser().readContents(issue1643, null, options);
385385

386386
Assert.assertNotNull(result);
@@ -1428,7 +1428,7 @@ public void testRefPaths() throws Exception {
14281428
" 200:\n" +
14291429
" description: OK\n" +
14301430
" /foo2:\n" +
1431-
" $ref: '#/paths/~1foo'";
1431+
" $ref: \"#/paths/~1foo\"";
14321432

14331433
OpenAPIV3Parser parser = new OpenAPIV3Parser();
14341434
OpenAPI openAPI = (parser.readContents(yaml,null,null)).getOpenAPI();
@@ -1515,14 +1515,14 @@ public void testParseRefPathParameters() throws Exception {
15151515
"paths:\n" +
15161516
" /reports/{id}:\n" +
15171517
" parameters:\n" +
1518-
" - $ref: '#/parameters/report-id'\n" +
1518+
" - $ref: \"#/parameters/report-id\"\n" +
15191519
" put:\n" +
15201520
" parameters:\n" +
15211521
" - name: id\n" +
15221522
" in: body\n" +
15231523
" required: true\n" +
15241524
" schema:\n" +
1525-
" $ref: '#/components/schemas/report'\n" +
1525+
" $ref: \"#/components/schemas/report\"\n" +
15261526
" responses:\n" +
15271527
" 200:\n" +
15281528
" description: ok\n" +
@@ -1552,28 +1552,28 @@ public void testUniqueParameters() throws Exception {
15521552
"paths:\n" +
15531553
" '/foos/{id}':\n" +
15541554
" parameters:\n" +
1555-
" - $ref: '#/components/parameters/foo-id'\n" +
1555+
" - $ref: \"#/components/parameters/foo-id\"\n" +
15561556
" get:\n" +
15571557
" responses:\n" +
15581558
" '200':\n" +
15591559
" description: OK\n" +
15601560
" content:\n" +
15611561
" '*/*':\n" +
15621562
" schema:\n" +
1563-
" $ref: '#/components/schemas/foo'\n" +
1563+
" $ref: \"#/components/schemas/foo\"\n" +
15641564
" put:\n" +
15651565
" responses:\n" +
15661566
" '200':\n" +
15671567
" description: OK\n" +
15681568
" content:\n" +
15691569
" '*/*':\n" +
15701570
" schema:\n" +
1571-
" $ref: '#/components/schemas/foo'\n" +
1571+
" $ref: \"#/components/schemas/foo\"\n" +
15721572
" requestBody:\n" +
15731573
" content:\n" +
15741574
" application/json:\n" +
15751575
" schema:\n" +
1576-
" $ref: '#/components/schemas/foo'\n" +
1576+
" $ref: \"#/components/schemas/foo\"\n" +
15771577
" required: true\n" +
15781578
"components:\n" +
15791579
" parameters:\n" +
@@ -2105,7 +2105,7 @@ public void testCodegenIssue4555() throws Exception {
21052105
" '200':\n" +
21062106
" description: OK\n" +
21072107
" schema: null\n" +
2108-
" $ref: '#/components/schemas/Content'\n" +
2108+
" $ref: \"#/components/schemas/Content\"\n" +
21092109
"components:\n" +
21102110
" schemas:\n" +
21112111
" Content:\n" +
@@ -2141,7 +2141,7 @@ public void testConverterIssue17() throws Exception {
21412141
" content:\n" +
21422142
" '*/*':\n" +
21432143
" schema:\n" +
2144-
" $ref: '#/components/schemas/Content'\n" +
2144+
" $ref: \"#/components/schemas/Content\"\n" +
21452145
"components:\n" +
21462146
" schemas:\n" +
21472147
" Content:\n" +
@@ -2174,8 +2174,8 @@ public void testIssue393() {
21742174
" The account could not be created because a credential didn't meet\n" +
21752175
" the complexity requirements.\n" +
21762176
" x-error-refs:\n" +
2177-
" - $ref: '#/x-error-defs/credentialTooShort'\n" +
2178-
" - $ref: '#/x-error-defs/credentialTooLong'\n" +
2177+
" - $ref: \"#/x-error-defs/credentialTooShort\"\n" +
2178+
" - $ref: \"#/x-error-defs/credentialTooLong\"\n" +
21792179
"x-error-defs:\n" +
21802180
" credentialTooShort:\n" +
21812181
" errorID: credentialTooShort";
@@ -2270,19 +2270,19 @@ public void testIncompatibleRefs() {
22702270
" post:\n" +
22712271
" responses:\n" +
22722272
" '200':\n" +
2273-
" $ref: '#/components/schemas/Schema'\n" +
2273+
" $ref: \"#/components/schemas/Schema\"\n" +
22742274
" '400':\n" +
22752275
" definitions: this is right\n" +
22762276
" description: Bad Request\n" +
22772277
" content:\n" +
22782278
" '*/*':\n" +
22792279
" schema:\n" +
2280-
" $ref: '#/components/schemas/Schema'\n" +
2280+
" $ref: \"#/components/schemas/Schema\"\n" +
22812281
" requestBody:\n" +
22822282
" content:\n" +
22832283
" application/json:\n" +
22842284
" schema:\n" +
2285-
" $ref: '#/components/schemas/Schema'\n" +
2285+
" $ref: \"#/components/schemas/Schema\"\n" +
22862286
" required: true\n" +
22872287
"info:\n" +
22882288
" version: ''\n" +
@@ -2311,7 +2311,7 @@ public void testIssue243() {
23112311
" content:\n" +
23122312
" '*/*':\n" +
23132313
" schema:\n" +
2314-
" $ref: '#/components/schemas/Simple'\n" +
2314+
" $ref: \"#/components/schemas/Simple\"\n" +
23152315
"components:\n" +
23162316
" schemas:\n" +
23172317
" Simple:\n" +
@@ -2373,7 +2373,7 @@ public void testIssue450() {
23732373
" PetArray:\n" +
23742374
" type: array\n" +
23752375
" items:\n" +
2376-
" $ref: '#/components/schemas/Pet'\n" +
2376+
" $ref: \"#/components/schemas/Pet\"\n" +
23772377
" description: An array of Pets\n" +
23782378
" x-my-tag: An extension tag\n" +
23792379
" Pet:\n" +

modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/test/RelativeReferenceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public void testIssue409() {
126126
" - emailAddress\n" +
127127
" properties:\n" +
128128
" id:\n" +
129-
" $ref: '#/components/schemas/ID'\n" +
129+
" $ref: \"#/components/schemas/ID\"\n" +
130130
" emailAddress:\n" +
131131
" type: string\n" +
132132
" format: email\n" +

0 commit comments

Comments
 (0)