diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/converting/EnumPropertyTest.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/converting/EnumPropertyTest.java index 0893929fbf..18e5e5510e 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/converting/EnumPropertyTest.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/converting/EnumPropertyTest.java @@ -94,11 +94,11 @@ public void testEnumRefProperty() { " type: object\n" + " properties:\n" + " a:\n" + - " $ref: '#/components/schemas/TestEnum'\n" + + " $ref: \"#/components/schemas/TestEnum\"\n" + " b:\n" + - " $ref: '#/components/schemas/TestEnum'\n" + + " $ref: \"#/components/schemas/TestEnum\"\n" + " c:\n" + - " $ref: '#/components/schemas/TestSecondEnum'\n" + + " $ref: \"#/components/schemas/TestSecondEnum\"\n" + " d:\n" + " type: string\n" + " enum:\n" + @@ -133,11 +133,11 @@ public void testEnumRefPropertyWithFQNTypeNameResolver() { " type: object\n" + " properties:\n" + " a:\n" + - " $ref: '#/components/schemas/io.swagger.v3.core.oas.models.TestEnum'\n" + + " $ref: \"#/components/schemas/io.swagger.v3.core.oas.models.TestEnum\"\n" + " b:\n" + - " $ref: '#/components/schemas/io.swagger.v3.core.oas.models.TestEnum'\n" + + " $ref: \"#/components/schemas/io.swagger.v3.core.oas.models.TestEnum\"\n" + " c:\n" + - " $ref: '#/components/schemas/io.swagger.v3.core.oas.models.TestSecondEnum'\n" + + " $ref: \"#/components/schemas/io.swagger.v3.core.oas.models.TestSecondEnum\"\n" + " d:\n" + " type: string\n" + " enum:\n" + @@ -173,7 +173,7 @@ public void testEnumRefPropertyGlobal() { " type: object\n" + " properties:\n" + " enumValue:\n" + - " $ref: '#/components/schemas/TestEnum'\n" + + " $ref: \"#/components/schemas/TestEnum\"\n" + "TestEnum:\n" + " type: string\n" + " enum:\n" + diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/converting/PojoTest.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/converting/PojoTest.java index 65863f5ee7..901439c401 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/converting/PojoTest.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/converting/PojoTest.java @@ -428,7 +428,7 @@ public void testModelPropertyExampleJson() { " type: object\n" + " properties:\n" + " exampleJson:\n" + - " $ref: '#/components/schemas/ExampleJson'\n" + + " $ref: \"#/components/schemas/ExampleJson\"\n" + " example:\n" + " id: 19877734"; SerializationMatchers.assertEqualsToYaml(readAll(modelWithPropertyExampleOverrideJson.class), yaml); @@ -464,7 +464,7 @@ public void testModelPropertyImplExampleJson() { " type: object\n" + " properties:\n" + " exampleJson:\n" + - " $ref: '#/components/schemas/ExampleJson'\n"; + " $ref: \"#/components/schemas/ExampleJson\"\n"; SerializationMatchers.assertEqualsToYaml(readAll(modelWithPropertyImplExampleOverrideJson.class), yaml); } diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/deserialization/JsonDeserializationTest.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/deserialization/JsonDeserializationTest.java index b5375c982a..a31e16362f 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/deserialization/JsonDeserializationTest.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/deserialization/JsonDeserializationTest.java @@ -291,10 +291,10 @@ public void testDeserializeRefCallback() throws Exception { " description: voila!\n" + " callbacks:\n" + " testCallback1:\n" + - " $ref: '#/components/callbacks/Callback'\n" + + " $ref: \"#/components/callbacks/Callback\"\n" + " callbacks:\n" + " testCallback1:\n" + - " $ref: '#/components/callbacks/Callback'\n" + + " $ref: \"#/components/callbacks/Callback\"\n" + "components:\n" + " callbacks:\n" + " Callback:\n" + diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/AllofResolvingTest.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/AllofResolvingTest.java index bbec9310c1..e4a552dcee 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/AllofResolvingTest.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/AllofResolvingTest.java @@ -29,19 +29,19 @@ public void testAllofResolving() { " - type: object\n" + " description: First user schema property\n" + " nullable: true\n" + - " - $ref: '#/components/schemas/UserProperty'\n" + + " - $ref: \"#/components/schemas/UserProperty\"\n" + " propertyTwo:\n" + " allOf:\n" + " - type: object\n" + " description: Second user schema property\n" + " example: example value for propertyTwo\n" + - " - $ref: '#/components/schemas/UserProperty'\n" + + " - $ref: \"#/components/schemas/UserProperty\"\n" + " propertyThree:\n" + " allOf:\n" + " - type: object\n" + " description: \"Third user schema property, with example for testing\"\n" + " example: example value for propertyThree\n" + - " - $ref: '#/components/schemas/UserProperty'\n"; + " - $ref: \"#/components/schemas/UserProperty\"\n"; SerializationMatchers.assertEqualsToYaml(c.getDefinedModels(), expectedYaml); // stringSchemaMap = c.readAll(InlineSchemaSecond.class); @@ -53,7 +53,7 @@ public void testAllofResolving() { " type: object\n" + " properties:\n" + " basicProperty:\n" + - " $ref: '#/components/schemas/BasicProperty'\n" + + " $ref: \"#/components/schemas/BasicProperty\"\n" + " description: Represents an order-specific property\n" + " example: Order-specific example value\n" + "OrderSchema:\n" + @@ -64,13 +64,13 @@ public void testAllofResolving() { " - type: object\n" + " description: First order schema property\n" + " nullable: true\n" + - " - $ref: '#/components/schemas/OrderProperty'\n" + + " - $ref: \"#/components/schemas/OrderProperty\"\n" + " userProperty:\n" + " allOf:\n" + " - type: object\n" + " description: \"Order schema property, references UserProperty\"\n" + " example: example value for userProperty\n" + - " - $ref: '#/components/schemas/UserProperty'\n" + + " - $ref: \"#/components/schemas/UserProperty\"\n" + "UserProperty:\n" + " type: object\n" + " description: Represents a user-specific property\n" + @@ -83,19 +83,19 @@ public void testAllofResolving() { " - type: object\n" + " description: First user schema property\n" + " nullable: true\n" + - " - $ref: '#/components/schemas/UserProperty'\n" + + " - $ref: \"#/components/schemas/UserProperty\"\n" + " propertyTwo:\n" + " allOf:\n" + " - type: object\n" + " description: Second user schema property\n" + " example: example value for propertyTwo\n" + - " - $ref: '#/components/schemas/UserProperty'\n" + + " - $ref: \"#/components/schemas/UserProperty\"\n" + " propertyThree:\n" + " allOf:\n" + " - type: object\n" + " description: \"Third user schema property, with example for testing\"\n" + " example: example value for propertyThree\n" + - " - $ref: '#/components/schemas/UserProperty'\n"; + " - $ref: \"#/components/schemas/UserProperty\"\n"; SerializationMatchers.assertEqualsToYaml(c.getDefinedModels(), expectedYaml); } diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/JsonPropertyTest.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/JsonPropertyTest.java index 2ff3817d5d..6bd7da3c8f 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/JsonPropertyTest.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/JsonPropertyTest.java @@ -109,7 +109,7 @@ public void testTicket2169() { " type: string\n" + " readOnly: true\n" + " data:\n" + - " $ref: '#/components/schemas/Data'\n" + + " $ref: \"#/components/schemas/Data\"\n" + " GetterJsonPropertyOnField:\n" + " type: string\n" + " GetterJsonPropertyOnFieldReadWrite:\n" + @@ -141,7 +141,7 @@ public void testTicket2845() { " type: object\n" + " properties:\n" + " child:\n" + - " $ref: '#/components/schemas/Ticket2845Child'"); + " $ref: \"#/components/schemas/Ticket2845Child\""); /* TODO: Test demonstrating annotation not being resolved when class is used/refernces elsewhere with different annotations @@ -165,9 +165,9 @@ and referenced (in the same or different class) with no or different @JsonIgnor " type: object\n" + " properties:\n" + " child:\n" + - " $ref: '#/components/schemas/Ticket2845Child'\n" + + " $ref: \"#/components/schemas/Ticket2845Child\"\n" + " childNoAnnotation:\n" + - " $ref: '#/components/schemas/Ticket2845Child'"); + " $ref: \"#/components/schemas/Ticket2845Child\""); } static class Ticket2845Parent { diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2189Test.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2189Test.java index ca32308af7..492da9e7f6 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2189Test.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2189Test.java @@ -40,7 +40,7 @@ public void testTicket2189() { "SubClass:\n" + " type: object\n" + " allOf:\n" + - " - $ref: '#/components/schemas/BaseClass'\n" + + " - $ref: \"#/components/schemas/BaseClass\"\n" + " - type: object\n" + " properties:\n" + " subClassProperty:\n" + diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2740CyclicTest.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2740CyclicTest.java index eaf6856024..d1524f0d69 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2740CyclicTest.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2740CyclicTest.java @@ -25,7 +25,7 @@ public void testCyclicBean() throws Exception { " type: array\n" + " description: Other related things\n" + " items:\n" + - " $ref: '#/components/schemas/MyThing'\n" + + " $ref: \"#/components/schemas/MyThing\"\n" + "description: Thing"); } diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2862SubtypeTest.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2862SubtypeTest.java index 55065f7289..d57220b7b2 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2862SubtypeTest.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2862SubtypeTest.java @@ -26,7 +26,7 @@ public void testSubType() throws Exception { "Ticket2862ModelImpl:\n" + " type: string\n" + " allOf:\n" + - " - $ref: '#/components/schemas/Ticket2862Model'\n" + + " - $ref: \"#/components/schemas/Ticket2862Model\"\n" + " enum:\n" + " - VALUE1\n" + " - VALUE2\n"); diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2884Test.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2884Test.java index 1b9430f965..fb2bac9e06 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2884Test.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2884Test.java @@ -56,7 +56,7 @@ public void test2884_null() { Assert.assertNotNull(o); Assert.assertTrue(o.get$ref().contains(Ticket2884ModelClass.class.getSimpleName())); SerializationMatchers.assertEqualsToYaml(schema.schema.getProperties(), "Ticket2884ModelClass:\n" + - " $ref: '#/components/schemas/Ticket2884ModelClass'"); + " $ref: \"#/components/schemas/Ticket2884ModelClass\""); } } diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2915Test.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2915Test.java index cc2ebfbb5c..131392f389 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2915Test.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2915Test.java @@ -37,9 +37,9 @@ public void testPropertyName() throws Exception { " name:\n" + " type: string\n" + " perServing:\n" + - " $ref: '#/components/schemas/QuantitativeValue'\n" + + " $ref: \"#/components/schemas/QuantitativeValue\"\n" + " per100Gram:\n" + - " $ref: '#/components/schemas/QuantitativeValue'\n" + + " $ref: \"#/components/schemas/QuantitativeValue\"\n" + " description: Nutritional value specification"); } diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2992Test.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2992Test.java index 4e5ed46db0..75eebf5df4 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2992Test.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket2992Test.java @@ -42,11 +42,11 @@ public void testLocalTime() throws Exception { " name:\n" + " type: string\n" + " a:\n" + - " $ref: '#/components/schemas/LocalTime'\n" + + " $ref: \"#/components/schemas/LocalTime\"\n" + " b:\n" + - " $ref: '#/components/schemas/LocalTime'\n" + + " $ref: \"#/components/schemas/LocalTime\"\n" + " c:\n" + - " $ref: '#/components/schemas/LocalTime'\n" + + " $ref: \"#/components/schemas/LocalTime\"\n" + " d:\n" + " type: string\n" + " format: date-time\n" + diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3030Test.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3030Test.java index f3bc33c5b7..4d0e14c0cd 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3030Test.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3030Test.java @@ -31,7 +31,7 @@ public void testTicket3030() throws Exception { String yaml = "Child:\n" + " type: object\n" + " allOf:\n" + - " - $ref: '#/components/schemas/Parent'\n" + + " - $ref: \"#/components/schemas/Parent\"\n" + " - type: object\n" + " properties:\n" + " property:\n" + diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3063Test.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3063Test.java index 58e49965f9..a70a292a39 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3063Test.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3063Test.java @@ -48,7 +48,7 @@ public void testTicket3063() throws Exception { " type: object\n" + " description: SubClass\n" + " allOf:\n" + - " - $ref: '#/components/schemas/BaseClass'\n" + + " - $ref: \"#/components/schemas/BaseClass\"\n" + " - type: object\n" + " properties:\n" + " additionalPropertyWhichShouldBeThere:\n" + diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3197Test.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3197Test.java index dc34b3a8e9..b1574a3072 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3197Test.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3197Test.java @@ -50,18 +50,18 @@ public void testTicket3197() throws Exception { " discriminator:\n" + " propertyName: type\n" + " mapping:\n" + - " RaceCar: '#/components/schemas/RaceCar'\n" + - " SportCar: '#/components/schemas/SportCar'\n" + + " RaceCar: \"#/components/schemas/RaceCar\"\n" + + " SportCar: \"#/components/schemas/SportCar\"\n" + " oneOf:\n" + - " - $ref: '#/components/schemas/RaceCar'\n" + - " - $ref: '#/components/schemas/SportCar'\n" + + " - $ref: \"#/components/schemas/RaceCar\"\n" + + " - $ref: \"#/components/schemas/SportCar\"\n" + "RaceCar:\n" + " required:\n" + " - carMetaData\n" + " - id\n" + " type: object\n" + " allOf:\n" + - " - $ref: '#/components/schemas/Car'\n" + + " - $ref: \"#/components/schemas/Car\"\n" + " - type: object\n" + " properties:\n" + " id:\n" + @@ -74,7 +74,7 @@ public void testTicket3197() throws Exception { " - id\n" + " type: object\n" + " allOf:\n" + - " - $ref: '#/components/schemas/Car'\n" + + " - $ref: \"#/components/schemas/Car\"\n" + " - type: object\n" + " properties:\n" + " id:\n" + @@ -108,11 +108,11 @@ public void testTicket3197AsSibling() throws Exception { " discriminator:\n" + " propertyName: type\n" + " mapping:\n" + - " RaceCar: '#/components/schemas/RaceCar'\n" + - " SportCar: '#/components/schemas/SportCar'\n" + + " RaceCar: \"#/components/schemas/RaceCar\"\n" + + " SportCar: \"#/components/schemas/SportCar\"\n" + " oneOf:\n" + - " - $ref: '#/components/schemas/RaceCar'\n" + - " - $ref: '#/components/schemas/SportCar'\n" + + " - $ref: \"#/components/schemas/RaceCar\"\n" + + " - $ref: \"#/components/schemas/SportCar\"\n" + "RaceCar:\n" + " required:\n" + " - carMetaData\n" + @@ -125,7 +125,7 @@ public void testTicket3197AsSibling() throws Exception { " model:\n" + " type: string\n" + " allOf:\n" + - " - $ref: '#/components/schemas/Car'\n" + + " - $ref: \"#/components/schemas/Car\"\n" + "SportCar:\n" + " required:\n" + " - id\n" + @@ -137,7 +137,7 @@ public void testTicket3197AsSibling() throws Exception { " model:\n" + " type: string\n" + " allOf:\n" + - " - $ref: '#/components/schemas/Car'\n"; + " - $ref: \"#/components/schemas/Car\"\n"; SerializationMatchers.assertEqualsToYaml(myContext.getDefinedModels(), yaml); ModelResolver.composedModelPropertiesAsSibling = false; diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3624Test.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3624Test.java index 4fc2b75747..b93d9a98ff 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3624Test.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3624Test.java @@ -29,12 +29,12 @@ public void testSelfReferencingOptional() throws Exception { " type: object\n" + " properties:\n" + " model:\n" + - " $ref: '#/components/schemas/Model'\n" + + " $ref: \"#/components/schemas/Model\"\n" + "ModelContainer:\n" + " type: object\n" + " properties:\n" + " model:\n" + - " $ref: '#/components/schemas/Model'\n"); + " $ref: \"#/components/schemas/Model\"\n"); } diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3703Test.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3703Test.java index 0cb5179942..8df37e5b11 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3703Test.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3703Test.java @@ -25,12 +25,12 @@ public void testSelfReferencingOptional() throws Exception { " type: object\n" + " properties:\n" + " model:\n" + - " $ref: '#/components/schemas/Model'\n" + + " $ref: \"#/components/schemas/Model\"\n" + "ModelContainer:\n" + " type: object\n" + " properties:\n" + " model:\n" + - " $ref: '#/components/schemas/Model'\n" + + " $ref: \"#/components/schemas/Model\"\n" + " bytes:\n" + " type: string\n" + " format: byte"); diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3853Test.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3853Test.java index 4282ff103c..a5c008808b 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3853Test.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket3853Test.java @@ -40,7 +40,7 @@ public void testTicket3853() { "io.swagger.v3.core.resolving.Ticket3853Test$SubClass:\n" + " type: object\n" + " allOf:\n" + - " - $ref: '#/components/schemas/io.swagger.v3.core.resolving.Ticket3853Test$BaseClass'\n" + + " - $ref: \"#/components/schemas/io.swagger.v3.core.resolving.Ticket3853Test$BaseClass\"\n" + " - type: object\n" + " properties:\n" + " subClassProperty:\n" + diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket4239Test.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket4239Test.java index f192eb99d9..5b41f7bed6 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket4239Test.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket4239Test.java @@ -60,7 +60,7 @@ public void testJsonValueSchemaAnnotation() { SerializationMatchers.assertEqualsToYaml(context.getDefinedModels(), "A1_Output:\n" + " type: object\n" + " allOf:\n" + - " - $ref: '#/components/schemas/A_Output'\n" + + " - $ref: \"#/components/schemas/A_Output\"\n" + " - type: object\n" + " properties:\n" + " a1_out:\n" + diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/v31/ModelResolverOAS31Test.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/v31/ModelResolverOAS31Test.java index 12e2ca78fc..0a813cf7a7 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/v31/ModelResolverOAS31Test.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/v31/ModelResolverOAS31Test.java @@ -48,11 +48,11 @@ public void testOAS31Fields() { SerializationMatchers.assertEqualsToYaml31(context.getDefinedModels(), "Address:\n" + " type: object\n" + " if:\n" + - " $ref: '#/components/schemas/AnnotatedCountry'\n" + + " $ref: \"#/components/schemas/AnnotatedCountry\"\n" + " then:\n" + - " $ref: '#/components/schemas/PostalCodeNumberPattern'\n" + + " $ref: \"#/components/schemas/PostalCodeNumberPattern\"\n" + " else:\n" + - " $ref: '#/components/schemas/PostalCodePattern'\n" + + " $ref: \"#/components/schemas/PostalCodePattern\"\n" + " dependentRequired:\n" + " street:\n" + " - country\n" + @@ -65,7 +65,7 @@ public void testOAS31Fields() { " - UNITED_STATES_OF_AMERICA\n" + " - CANADA\n" + " propertyNames:\n" + - " $ref: '#/components/schemas/PropertyNamesPattern'\n" + + " $ref: \"#/components/schemas/PropertyNamesPattern\"\n" + "AnnotatedCountry:\n" + " type: object\n" + " properties:\n" + @@ -121,17 +121,17 @@ public void testOAS31Fields() { " type: string\n" + " contentMediaType: application/jwt\n" + " contentSchema:\n" + - " $ref: '#/components/schemas/MultipleBaseBean'\n" + + " $ref: \"#/components/schemas/MultipleBaseBean\"\n" + " address:\n" + - " $ref: '#/components/schemas/Address'\n" + + " $ref: \"#/components/schemas/Address\"\n" + " client:\n" + - " $ref: '#/components/schemas/Client'\n" + + " $ref: \"#/components/schemas/Client\"\n" + " dependentSchemas:\n" + " creditCard:\n" + - " $ref: '#/components/schemas/CreditCard'\n" + + " $ref: \"#/components/schemas/CreditCard\"\n" + " patternProperties:\n" + " creditCard:\n" + - " $ref: '#/components/schemas/CreditCard'\n" + + " $ref: \"#/components/schemas/CreditCard\"\n" + " properties:\n" + " extraObject: {}\n" + "MultipleBaseBean:\n" + @@ -147,7 +147,7 @@ public void testOAS31Fields() { " type: string\n" + "MultipleSub1Bean:\n" + " allOf:\n" + - " - $ref: '#/components/schemas/MultipleBaseBean'\n" + + " - $ref: \"#/components/schemas/MultipleBaseBean\"\n" + " - type: object\n" + " properties:\n" + " c:\n" + @@ -156,7 +156,7 @@ public void testOAS31Fields() { " description: MultipleSub1Bean\n" + "MultipleSub2Bean:\n" + " allOf:\n" + - " - $ref: '#/components/schemas/MultipleBaseBean'\n" + + " - $ref: \"#/components/schemas/MultipleBaseBean\"\n" + " - type: object\n" + " properties:\n" + " d:\n" + @@ -195,7 +195,7 @@ public void testDependentSchemasAnnotation() { " value:\n" + " properties:\n" + " enable:\n" + - " $ref: '#/components/schemas/BooleanFakeClass'\n" + + " $ref: \"#/components/schemas/BooleanFakeClass\"\n" + " properties:\n" + " name:\n" + " type: string\n" + diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/v31/PatternAndSchemaPropertiesTest.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/v31/PatternAndSchemaPropertiesTest.java index 09a7195a94..f68ffacb18 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/v31/PatternAndSchemaPropertiesTest.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/v31/PatternAndSchemaPropertiesTest.java @@ -39,7 +39,7 @@ public void testPatternAndSchemaProperties() throws Exception { " type: integer\n" + " format: int64\n" + " category:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " name:\n" + " type: string\n" + " photoUrls:\n" + @@ -55,7 +55,7 @@ public void testPatternAndSchemaProperties() throws Exception { " xml:\n" + " wrapped: true\n" + " items:\n" + - " $ref: '#/components/schemas/Tag'\n" + + " $ref: \"#/components/schemas/Tag\"\n" + " status:\n" + " type: string\n" + " description: pet status in the store\n" + @@ -64,7 +64,7 @@ public void testPatternAndSchemaProperties() throws Exception { " - pending\n" + " - sold\n" + " anotherCategory:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " anotherInteger:\n" + " maximum: 10\n" + " type: integer\n" + @@ -104,7 +104,7 @@ public void testPatternAndSchemaProperties() throws Exception { " type: integer\n" + " format: int64\n" + " category:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " name:\n" + " type: string\n" + " photoUrls:\n" + @@ -120,7 +120,7 @@ public void testPatternAndSchemaProperties() throws Exception { " xml:\n" + " wrapped: true\n" + " items:\n" + - " $ref: '#/components/schemas/Tag'\n" + + " $ref: \"#/components/schemas/Tag\"\n" + " status:\n" + " type: string\n" + " description: pet status in the store\n" + @@ -129,7 +129,7 @@ public void testPatternAndSchemaProperties() throws Exception { " - pending\n" + " - sold\n" + " anotherCategory:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " anotherInteger:\n" + " maximum: 10\n" + " type: integer\n" + @@ -142,7 +142,7 @@ public void testPatternAndSchemaProperties() throws Exception { " description: prop schema 1\n" + " format: int32\n" + " it.*takes:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " description: Annotated Pet\n" + "Category:\n" + " type: object\n" + diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/serialization/OpenAPI3_1SerializationTest.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/serialization/OpenAPI3_1SerializationTest.java index d0da2377d7..3f1d1a8f85 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/serialization/OpenAPI3_1SerializationTest.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/serialization/OpenAPI3_1SerializationTest.java @@ -80,13 +80,13 @@ public void testSerializePetstore() throws Exception { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pets'\n" + + " $ref: \"#/components/schemas/Pets\"\n" + " default:\n" + " description: unexpected error\n" + " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Error'\n" + + " $ref: \"#/components/schemas/Error\"\n" + " post:\n" + " tags:\n" + " - pets\n" + @@ -100,7 +100,7 @@ public void testSerializePetstore() throws Exception { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Error'\n" + + " $ref: \"#/components/schemas/Error\"\n" + " /pets/{petId}:\n" + " get:\n" + " tags:\n" + @@ -120,13 +120,13 @@ public void testSerializePetstore() throws Exception { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pets'\n" + + " $ref: \"#/components/schemas/Pets\"\n" + " default:\n" + " description: unexpected error\n" + " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Error'\n" + + " $ref: \"#/components/schemas/Error\"\n" + "components:\n" + " schemas:\n" + " Pet:\n" + @@ -146,7 +146,7 @@ public void testSerializePetstore() throws Exception { " Pets:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " Error:\n" + " required:\n" + " - code\n" + @@ -165,7 +165,7 @@ public void testSerializePetstore() throws Exception { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " responses:\n" + " \"200\":\n" + " description: Return a 200 status to indicate that the data was received\n" + @@ -903,7 +903,7 @@ public void testPathItemsRefSerialization() { SerializationMatchers.assertEqualsToYaml31(openAPI, "openapi: 3.1.0\n" + "paths:\n" + " /pathTest:\n" + - " $ref: '#/components/pathItems/pathTest'\n" + + " $ref: \"#/components/pathItems/pathTest\"\n" + " description: This is a ref path item\n" + " summary: ref path item\n" + "components:\n" + @@ -966,7 +966,7 @@ public void testResponseRefSerialization() { " responses:\n" + " \"200\":\n" + " description: point to a $ref response\n" + - " $ref: '#/components/responses/okResponse'\n" + + " $ref: \"#/components/responses/okResponse\"\n" + "components:\n" + " responses:\n" + " okResponse:\n" + @@ -1021,7 +1021,7 @@ public void testParameterRefSerialization() { " operationId: testPathItem\n" + " parameters:\n" + " - description: test parameter\n" + - " $ref: '#/components/parameters/testParameter'\n" + + " $ref: \"#/components/parameters/testParameter\"\n" + "components:\n" + " parameters:\n" + " testParameter:\n" + @@ -1072,7 +1072,7 @@ public void testExampleRefSerialization() { " example:\n" + " summary: ref summary\n" + " description: ref description\n" + - " $ref: '#/components/examples/testExample'\n" + + " $ref: \"#/components/examples/testExample\"\n" + " examples:\n" + " testExample:\n" + " summary: this is a summary test\n" + @@ -1125,7 +1125,7 @@ public void testRequestBodyRefSerialization() { " operationId: testPathItem\n" + " requestBody:\n" + " description: ref request body\n" + - " $ref: '#/components/requestBodies/body'\n" + + " $ref: \"#/components/requestBodies/body\"\n" + "components:\n" + " requestBodies:\n" + " body:\n" + @@ -1194,7 +1194,7 @@ public void testHeaderRefSerialization() { " headers:\n" + " header:\n" + " description: ref header description\n" + - " $ref: '#/components/responses/okResponse'\n" + + " $ref: \"#/components/responses/okResponse\"\n" + "components:\n" + " headers:\n" + " test-head:\n" + @@ -1286,7 +1286,7 @@ public void testLinkRefSerialization() { " links:\n" + " link:\n" + " description: ref link description\n" + - " $ref: '#/components/links/Link'\n" + + " $ref: \"#/components/links/Link\"\n" + "components:\n" + " links:\n" + " Link:\n" + @@ -1345,7 +1345,7 @@ public void testCallRefSerialization() { " operationId: testPathItem\n" + " callbacks:\n" + " callbackSample:\n" + - " $ref: '#/components/callbacks/TestCallback'\n" + + " $ref: \"#/components/callbacks/TestCallback\"\n" + "components:\n" + " callbacks:\n" + " TestCallback:\n" + diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/serialization/SchemaSerializationTest.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/serialization/SchemaSerializationTest.java index 713f5f9da7..1cbdf5ad89 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/serialization/SchemaSerializationTest.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/serialization/SchemaSerializationTest.java @@ -54,7 +54,7 @@ public void serializeRefSchema3_1() { " tag:\n" + " type: string\n" + " AnotherPet:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " description: Another Pet for petstore referencing Pet schema\n" + " properties:\n" + " category:\n" + @@ -76,6 +76,6 @@ public void serializeRefSchema3_1() { " type: string\n" + " format: whatever\n" + " AnotherPet:\n" + - " $ref: '#/components/schemas/Pet'\n"); + " $ref: \"#/components/schemas/Pet\"\n"); } } diff --git a/modules/swagger-core/src/test/resources/specFiles/3.1.0/issue-4737-3.1.yaml b/modules/swagger-core/src/test/resources/specFiles/3.1.0/issue-4737-3.1.yaml index 1e1615a4f2..4436615b0d 100644 --- a/modules/swagger-core/src/test/resources/specFiles/3.1.0/issue-4737-3.1.yaml +++ b/modules/swagger-core/src/test/resources/specFiles/3.1.0/issue-4737-3.1.yaml @@ -20,7 +20,7 @@ webhooks: content: application/json: schema: - $ref: '#/components/schemas/RequestDto' + $ref: "#/components/schemas/RequestDto" description: Webhook Pet responses: '200': diff --git a/modules/swagger-core/src/test/resources/specFiles/3.1.0/petstore-3.1_refs_siblings.yaml b/modules/swagger-core/src/test/resources/specFiles/3.1.0/petstore-3.1_refs_siblings.yaml index 7d860352e3..664be2af6f 100644 --- a/modules/swagger-core/src/test/resources/specFiles/3.1.0/petstore-3.1_refs_siblings.yaml +++ b/modules/swagger-core/src/test/resources/specFiles/3.1.0/petstore-3.1_refs_siblings.yaml @@ -10,7 +10,7 @@ servers: - url: http://petstore.swagger.io/v1 paths: /ref_pet: - $ref: '#/components/pathItems/pet' + $ref: "#/components/pathItems/pet" description: "ref pathItem description" summary: "ref pathItem summary" /pets: @@ -20,7 +20,7 @@ paths: summary: Create a pet operationId: createPets parameters: - - $ref: '#/components/parameters/testParameter' + - $ref: "#/components/parameters/testParameter" description: "ref parameter description" summary: "ref parameter summary" - name: randomParam @@ -29,26 +29,26 @@ paths: type: string examples: refExample: - $ref: '#/components/examples/testExample' + $ref: "#/components/examples/testExample" description: "ref example description" summary: "ref example summary" callbacks: callIt: - $ref: '#/components/callbacks/TestCallback' + $ref: "#/components/callbacks/TestCallback" requestBody: - $ref: '#/components/requestBodies/body' + $ref: "#/components/requestBodies/body" description: "ref request body description" summary: "ref request body summary" responses: "201": - $ref: '#/components/responses/okResponse' + $ref: "#/components/responses/okResponse" description: "ref response description" summary: "ref response summary" default: description: 'default response' headers: head: - $ref: '#/components/headers/head' + $ref: "#/components/headers/head" description: "ref header description" summary: "ref header summary" @@ -134,7 +134,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" responses: okResponse: description: everything is good" diff --git a/modules/swagger-core/src/test/resources/specFiles/3.1.0/specWithReferredSchemas-3.1.yaml b/modules/swagger-core/src/test/resources/specFiles/3.1.0/specWithReferredSchemas-3.1.yaml index bfc9e05cf4..f4c77e75d9 100644 --- a/modules/swagger-core/src/test/resources/specFiles/3.1.0/specWithReferredSchemas-3.1.yaml +++ b/modules/swagger-core/src/test/resources/specFiles/3.1.0/specWithReferredSchemas-3.1.yaml @@ -114,11 +114,11 @@ webhooks: content: application/json: schema: - $ref: '#/components/schemas/WebhookOperationDefinition' + $ref: "#/components/schemas/WebhookOperationDefinition" description: Webhook Pet responses: '200': content: application/json: schema: - $ref: '#/components/schemas/WebhookResponseDefinition' + $ref: "#/components/schemas/WebhookResponseDefinition" diff --git a/modules/swagger-core/src/test/resources/specFiles/media-type-null-example.yaml b/modules/swagger-core/src/test/resources/specFiles/media-type-null-example.yaml index 917ec5611a..d1cbd357bd 100644 --- a/modules/swagger-core/src/test/resources/specFiles/media-type-null-example.yaml +++ b/modules/swagger-core/src/test/resources/specFiles/media-type-null-example.yaml @@ -18,7 +18,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" example: id: 10 name: kitty diff --git a/modules/swagger-core/src/test/resources/specFiles/null-example.yaml b/modules/swagger-core/src/test/resources/specFiles/null-example.yaml index 81124e714e..b454570d59 100644 --- a/modules/swagger-core/src/test/resources/specFiles/null-example.yaml +++ b/modules/swagger-core/src/test/resources/specFiles/null-example.yaml @@ -13,7 +13,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectWithNullExample' + $ref: "#/components/schemas/ObjectWithNullExample" /object-with-null-in-schema-example: get: @@ -24,7 +24,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectWithNullInSchemaExample' + $ref: "#/components/schemas/ObjectWithNullInSchemaExample" /object-with-null-property-example: get: @@ -35,7 +35,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectWithNullPropertyExample' + $ref: "#/components/schemas/ObjectWithNullPropertyExample" /string-with-null-example: get: @@ -46,7 +46,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StringWithNullExample' + $ref: "#/components/schemas/StringWithNullExample" /array-with-null-array-example: get: @@ -57,7 +57,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ArrayWithNullArrayExample' + $ref: "#/components/schemas/ArrayWithNullArrayExample" /array-with-null-item-example: get: @@ -68,7 +68,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ArrayWithNullItemExample' + $ref: "#/components/schemas/ArrayWithNullItemExample" /arrey-with-null-in-array-example: get: @@ -79,7 +79,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ArrayWithNullInArrayExample' + $ref: "#/components/schemas/ArrayWithNullInArrayExample" /object-without-null-example: get: @@ -90,7 +90,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectWithoutNullExample' + $ref: "#/components/schemas/ObjectWithoutNullExample" /object-without-null-in-schema-example: get: @@ -101,7 +101,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectWithoutNullInSchemaExample' + $ref: "#/components/schemas/ObjectWithoutNullInSchemaExample" /object-without-null-property-example: get: @@ -112,7 +112,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectWithoutNullPropertyExample' + $ref: "#/components/schemas/ObjectWithoutNullPropertyExample" /string-without-null-example: get: @@ -123,7 +123,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StringWithoutNullExample' + $ref: "#/components/schemas/StringWithoutNullExample" /array-without-null-array-example: get: @@ -134,7 +134,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ArrayWithoutNullArrayExample' + $ref: "#/components/schemas/ArrayWithoutNullArrayExample" /array-without-null-item-example: get: @@ -145,7 +145,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ArrayWithoutNullItemExample' + $ref: "#/components/schemas/ArrayWithoutNullItemExample" /arrey-without-null-in-array-example: get: @@ -156,7 +156,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ArrayWithoutNullInArrayExample' + $ref: "#/components/schemas/ArrayWithoutNullInArrayExample" components: schemas: ObjectWithNullExample: diff --git a/modules/swagger-core/src/test/resources/specFiles/null-in-schema-example.yaml b/modules/swagger-core/src/test/resources/specFiles/null-in-schema-example.yaml index f3c1e92b74..1c5baff75a 100644 --- a/modules/swagger-core/src/test/resources/specFiles/null-in-schema-example.yaml +++ b/modules/swagger-core/src/test/resources/specFiles/null-in-schema-example.yaml @@ -13,7 +13,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectWithNullInSchemaExample' + $ref: "#/components/schemas/ObjectWithNullInSchemaExample" components: schemas: diff --git a/modules/swagger-core/src/test/resources/specFiles/oas3.yaml b/modules/swagger-core/src/test/resources/specFiles/oas3.yaml index 5dad635db6..ece0fbe898 100644 --- a/modules/swagger-core/src/test/resources/specFiles/oas3.yaml +++ b/modules/swagger-core/src/test/resources/specFiles/oas3.yaml @@ -67,7 +67,7 @@ paths: "/pathItemRef": "$ref": 'http://localhost:${dynamicPort}/remote/path' "/pathItemRef2": - "$ref": '#/paths/~1pet' + "$ref": "#/paths/~1pet" "/pet": summary: summary description: description @@ -107,14 +107,14 @@ paths: content: 'application/json': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" examples: user: summary: User Example externalValue: 'http://foo.bar/examples/user-example.json' 'application/xml': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" examples: user: summary: User Example in XML @@ -161,7 +161,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VeryComplexType' + $ref: "#/components/schemas/VeryComplexType" '404': description: Pet not found '405': @@ -191,7 +191,7 @@ paths: minimum: 1 maximum: 10 allOf: - - $ref: '#/components/schemas/Pet' + - $ref: "#/components/schemas/Pet" - type: object properties: huntingSkill: @@ -988,7 +988,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/ExtendedErrorModel' + $ref: "#/components/schemas/ExtendedErrorModel" parameters: refParam: "$ref": "#/components/parameters/limitParam/" @@ -1105,7 +1105,7 @@ components: '$request.query.heartbeat-url': post: requestBody: - $ref: '#/components/requestBodies/requestBody3' + $ref: "#/components/requestBodies/requestBody3" responses: '200': description: Consumer acknowledged the callback @@ -1113,7 +1113,7 @@ components: '$response.body#/failedUrl': post: requestBody: - $ref: '#/components/requestBodies/requestBody3' + $ref: "#/components/requestBodies/requestBody3" responses: '200': description: Consumer acknowledged the callback failed @@ -1121,7 +1121,7 @@ components: '$response.body#/successUrl': post: requestBody: - $ref: '#/components/requestBodies/requestBody1' + $ref: "#/components/requestBodies/requestBody1" responses: '200': description: Consumer acknowledged the callback diff --git a/modules/swagger-core/src/test/resources/specFiles/oas3_2.yaml b/modules/swagger-core/src/test/resources/specFiles/oas3_2.yaml index 26812c6681..b68a72763a 100644 --- a/modules/swagger-core/src/test/resources/specFiles/oas3_2.yaml +++ b/modules/swagger-core/src/test/resources/specFiles/oas3_2.yaml @@ -108,7 +108,7 @@ paths: content: 'application/json': schema: - $ref: '#/components/schemas/Dog' + $ref: "#/components/schemas/Dog" servers: - url: http://petstore.swagger.io/v2 put: @@ -126,7 +126,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VeryComplexType' + $ref: "#/components/schemas/VeryComplexType" '404': description: Pet not found '405': @@ -548,7 +548,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" "/issue-125": get: parameters: [] @@ -691,7 +691,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Address' + $ref: "#/components/schemas/Address" required: true responses: '200': @@ -779,7 +779,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExtendedAddress' + $ref: "#/components/schemas/ExtendedAddress" required: false responses: '200': @@ -1002,7 +1002,7 @@ components: type: object x-swagger-router-model: io.swagger.oas.test.models.ExtendedAddress allOf: - - $ref: '#/components/schemas/Address' + - $ref: "#/components/schemas/Address" - type: object required: - gps @@ -1195,7 +1195,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/ExtendedErrorModel' + $ref: "#/components/schemas/ExtendedErrorModel" parameters: contentParameter: in: query @@ -1203,7 +1203,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/ExtendedErrorModel' + $ref: "#/components/schemas/ExtendedErrorModel" examples: cat: summary: An example of a cat @@ -1313,7 +1313,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/ExtendedErrorModel' + $ref: "#/components/schemas/ExtendedErrorModel" examples: dog: $ref: "#/components/examples/dog" @@ -1333,7 +1333,7 @@ components: '$request.query.heartbeat-url': post: requestBody: - $ref: '#/components/requestBodies/requestBody3' + $ref: "#/components/requestBodies/requestBody3" responses: '200': description: Consumer acknowledged the callback @@ -1341,7 +1341,7 @@ components: '$response.body#/failedUrl': post: requestBody: - $ref: '#/components/requestBodies/requestBody3' + $ref: "#/components/requestBodies/requestBody3" responses: '200': description: Consumer acknowledged the callback failed @@ -1349,7 +1349,7 @@ components: '$response.body#/successUrl': post: requestBody: - $ref: '#/components/requestBodies/requestBody1' + $ref: "#/components/requestBodies/requestBody1" responses: '200': description: Consumer acknowledged the callback diff --git a/modules/swagger-eclipse-transformer-maven-plugin/pom.xml b/modules/swagger-eclipse-transformer-maven-plugin/pom.xml index 1ececfda93..c5afbe215d 100644 --- a/modules/swagger-eclipse-transformer-maven-plugin/pom.xml +++ b/modules/swagger-eclipse-transformer-maven-plugin/pom.xml @@ -94,7 +94,7 @@ org.apache.maven.plugin-tools maven-plugin-annotations - 3.15.0 + 3.15.1 provided @@ -106,7 +106,7 @@ org.codehaus.plexus plexus-archiver - 4.9.0 + 4.10.0 test @@ -122,7 +122,7 @@ org.codehaus.plexus plexus-utils - 4.0.0 + 4.0.2 org.codehaus.plexus @@ -138,7 +138,7 @@ commons-cli commons-cli - 1.6.0 + 1.9.0 org.apache.maven diff --git a/modules/swagger-jaxrs2/pom.xml b/modules/swagger-jaxrs2/pom.xml index b603d0e596..5762abb602 100644 --- a/modules/swagger-jaxrs2/pom.xml +++ b/modules/swagger-jaxrs2/pom.xml @@ -221,7 +221,7 @@ org.jboss.arquillian.testng arquillian-testng-container - 1.8.0.Final + 1.9.3.Final test diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/ContainerTypeSchemaTicket2636Test.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/ContainerTypeSchemaTicket2636Test.java index 0d8a5720a7..7584aaf24b 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/ContainerTypeSchemaTicket2636Test.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/ContainerTypeSchemaTicket2636Test.java @@ -27,7 +27,7 @@ public void testContainerTypeSchemaTicket2636() throws Exception { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/MyModel'\n" + + " $ref: \"#/components/schemas/MyModel\"\n" + " required: true\n" + " responses:\n" + " \"200\":\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/EnumTest.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/EnumTest.java index a0d90c52b6..2f9410e949 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/EnumTest.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/EnumTest.java @@ -42,7 +42,7 @@ public void testEnum() throws IOException { " schema:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/TaskDTO'\n" + + " $ref: \"#/components/schemas/TaskDTO\"\n" + " \"404\":\n" + " description: User not found\n" + "components:\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/JsonIdentityTest.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/JsonIdentityTest.java index bbc9d4ece3..9af9a9d351 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/JsonIdentityTest.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/JsonIdentityTest.java @@ -34,7 +34,7 @@ public void testJsonIdentityCyclic() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/ModelWithJsonIdentityCyclic'\n" + + " $ref: \"#/components/schemas/ModelWithJsonIdentityCyclic\"\n" + " required: true\n" + " responses:\n" + " default:\n" + @@ -63,7 +63,7 @@ public void testJsonIdentityCyclic() throws IOException { " sourceDefinitions:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/SourceDefinition'\n"; + " $ref: \"#/components/schemas/SourceDefinition\"\n"; static final String EXPECTED_YAML = "openapi: 3.0.1\n" + "paths:\n" + @@ -75,7 +75,7 @@ public void testJsonIdentityCyclic() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/ModelWithJsonIdentity'\n" + + " $ref: \"#/components/schemas/ModelWithJsonIdentity\"\n" + " required: true\n" + " responses:\n" + " default:\n" + @@ -91,7 +91,7 @@ public void testJsonIdentityCyclic() throws IOException { " PropertyGeneratorAsId:\n" + " type: string\n" + " PropertyGeneratorAsProperty:\n" + - " $ref: '#/components/schemas/SourceDefinition1'\n" + + " $ref: \"#/components/schemas/SourceDefinition1\"\n" + " ChangedPropertyName:\n" + " type: string\n" + " ChangedPropertyName2:\n" + @@ -99,35 +99,35 @@ public void testJsonIdentityCyclic() throws IOException { " SourceWithoutPropertyAsId:\n" + " type: string\n" + " SourceWithoutPropertyAsProperty:\n" + - " $ref: '#/components/schemas/SourceDefinition3'\n" + + " $ref: \"#/components/schemas/SourceDefinition3\"\n" + " IntSequenceGeneratorAsId:\n" + " type: integer\n" + " format: int32\n" + " IntSequenceGeneratorAsProperty:\n" + - " $ref: '#/components/schemas/SourceDefinition4'\n" + + " $ref: \"#/components/schemas/SourceDefinition4\"\n" + " IntSequenceWithoutPropertyAsId:\n" + " type: integer\n" + " format: int32\n" + " IntSequenceWithoutPropertyAsProperty:\n" + - " $ref: '#/components/schemas/SourceDefinition5'\n" + + " $ref: \"#/components/schemas/SourceDefinition5\"\n" + " UUIDGeneratorAsId:\n" + " type: string\n" + " format: uuid\n" + " UUIDGeneratorAsProperty:\n" + - " $ref: '#/components/schemas/SourceDefinition6'\n" + + " $ref: \"#/components/schemas/SourceDefinition6\"\n" + " UUIDGeneratorWithoutPropertyAsId:\n" + " type: string\n" + " format: uuid\n" + " UUIDGeneratorWithoutPropertyAsProperty:\n" + - " $ref: '#/components/schemas/SourceDefinition7'\n" + + " $ref: \"#/components/schemas/SourceDefinition7\"\n" + " GeneratorsNone:\n" + - " $ref: '#/components/schemas/SourceDefinition8'\n" + + " $ref: \"#/components/schemas/SourceDefinition8\"\n" + " CustomGenerator:\n" + " type: string\n" + " WithoutJsonIdentityReference:\n" + - " $ref: '#/components/schemas/SourceDefinition10'\n" + + " $ref: \"#/components/schemas/SourceDefinition10\"\n" + " IntSequenceGeneratorAtClassLevel:\n" + - " $ref: '#/components/schemas/SourceDefinition11'\n" + + " $ref: \"#/components/schemas/SourceDefinition11\"\n" + " SourceDefinition1:\n" + " type: object\n" + " properties:\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/ReaderTest.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/ReaderTest.java index afc7cfa1b1..b522070fd5 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/ReaderTest.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/ReaderTest.java @@ -391,7 +391,7 @@ public void testMoreResponses() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/SampleResponseSchema'\n" + + " $ref: \"#/components/schemas/SampleResponseSchema\"\n" + " \"404\":\n" + " description: not found!\n" + " \"400\":\n" + @@ -399,7 +399,7 @@ public void testMoreResponses() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/GenericError'\n" + + " $ref: \"#/components/schemas/GenericError\"\n" + " deprecated: true\n" + "components:\n" + " schemas:\n" + @@ -430,13 +430,13 @@ public void testGetResponsesWithComposition() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/SampleResponseSchema'\n" + + " $ref: \"#/components/schemas/SampleResponseSchema\"\n" + " default:\n" + " description: boo\n" + " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/GenericError'\n" + + " $ref: \"#/components/schemas/GenericError\"\n" + " deprecated: true\n" + " /allOf:\n" + " get:\n" + @@ -458,8 +458,8 @@ public void testGetResponsesWithComposition() { " application/json:\n" + " schema:\n" + " allOf:\n" + - " - $ref: '#/components/schemas/MultipleSub1Bean'\n" + - " - $ref: '#/components/schemas/MultipleSub2Bean'\n" + + " - $ref: \"#/components/schemas/MultipleSub1Bean\"\n" + + " - $ref: \"#/components/schemas/MultipleSub2Bean\"\n" + " /anyOf:\n" + " get:\n" + " summary: Test inheritance / polymorphism\n" + @@ -480,8 +480,8 @@ public void testGetResponsesWithComposition() { " application/json:\n" + " schema:\n" + " anyOf:\n" + - " - $ref: '#/components/schemas/MultipleSub1Bean'\n" + - " - $ref: '#/components/schemas/MultipleSub2Bean'\n" + + " - $ref: \"#/components/schemas/MultipleSub1Bean\"\n" + + " - $ref: \"#/components/schemas/MultipleSub2Bean\"\n" + " /oneOf:\n" + " get:\n" + " summary: Test inheritance / polymorphism\n" + @@ -502,8 +502,8 @@ public void testGetResponsesWithComposition() { " application/json:\n" + " schema:\n" + " oneOf:\n" + - " - $ref: '#/components/schemas/MultipleSub1Bean'\n" + - " - $ref: '#/components/schemas/MultipleSub2Bean'\n" + + " - $ref: \"#/components/schemas/MultipleSub1Bean\"\n" + + " - $ref: \"#/components/schemas/MultipleSub2Bean\"\n" + "components:\n" + " schemas:\n" + " SampleResponseSchema:\n" + @@ -514,7 +514,7 @@ public void testGetResponsesWithComposition() { " type: object\n" + " description: MultipleSub1Bean\n" + " allOf:\n" + - " - $ref: '#/components/schemas/MultipleBaseBean'\n" + + " - $ref: \"#/components/schemas/MultipleBaseBean\"\n" + " - type: object\n" + " properties:\n" + " c:\n" + @@ -524,7 +524,7 @@ public void testGetResponsesWithComposition() { " type: object\n" + " description: MultipleSub2Bean\n" + " allOf:\n" + - " - $ref: '#/components/schemas/MultipleBaseBean'\n" + + " - $ref: \"#/components/schemas/MultipleBaseBean\"\n" + " - type: object\n" + " properties:\n" + " d:\n" + @@ -1075,7 +1075,7 @@ public void testTicket2340() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Animal'\n" + + " $ref: \"#/components/schemas/Animal\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + @@ -1097,7 +1097,7 @@ public void testTicket2340() { " Cat:\n" + " type: object\n" + " allOf:\n" + - " - $ref: '#/components/schemas/Animal'\n" + + " - $ref: \"#/components/schemas/Animal\"\n" + " - type: object\n" + " properties:\n" + " lives:\n" + @@ -1106,7 +1106,7 @@ public void testTicket2340() { " Dog:\n" + " type: object\n" + " allOf:\n" + - " - $ref: '#/components/schemas/Animal'\n" + + " - $ref: \"#/components/schemas/Animal\"\n" + " - type: object\n" + " properties:\n" + " barkVolume:\n" + @@ -1131,7 +1131,7 @@ public void testTicket2806() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/Test'\n" + + " $ref: \"#/components/schemas/Test\"\n" + "components:\n" + " schemas:\n" + " Test:\n" + @@ -1182,7 +1182,7 @@ public void testTicket2794() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/Book'\n" + + " $ref: \"#/components/schemas/Book\"\n" + " required: true\n" + " responses:\n" + " default:\n" + @@ -1196,7 +1196,7 @@ public void testTicket2794() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/Book'\n" + + " $ref: \"#/components/schemas/Book\"\n" + " required: true\n" + " responses:\n" + " default:\n" + @@ -1232,7 +1232,7 @@ public void testTicket2793() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/DistancesResponse'\n" + + " $ref: \"#/components/schemas/DistancesResponse\"\n" + "components:\n" + " schemas:\n" + " DistancesResponse:\n" + @@ -1286,15 +1286,15 @@ public void testResponseWithRef() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/SampleResponseSchema'\n" + + " $ref: \"#/components/schemas/SampleResponseSchema\"\n" + " default:\n" + " description: boo\n" + " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/GenericError'\n" + + " $ref: \"#/components/schemas/GenericError\"\n" + " \"401\":\n" + - " $ref: '#/components/responses/invalidJWT'\n" + + " $ref: \"#/components/responses/invalidJWT\"\n" + " deprecated: true\n" + "components:\n" + " schemas:\n" + @@ -1340,15 +1340,15 @@ public void testResponseWithFilter() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/SampleResponseSchema'\n" + + " $ref: \"#/components/schemas/SampleResponseSchema\"\n" + " default:\n" + " description: boo\n" + " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/GenericError'\n" + + " $ref: \"#/components/schemas/GenericError\"\n" + " \"401\":\n" + - " $ref: '#/components/responses/invalidJWT'\n" + + " $ref: \"#/components/responses/invalidJWT\"\n" + " deprecated: true\n" + "components:\n" + " schemas:\n" + @@ -1392,7 +1392,7 @@ public void testTicket2848() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/Town'\n" + + " $ref: \"#/components/schemas/Town\"\n" + "components:\n" + " schemas:\n" + " Town:\n" + @@ -1430,7 +1430,7 @@ public void testRequestBodyWithRef() { " description: Defines a simple get operation with a payload complex input object\n" + " operationId: sendPayload\n" + " requestBody:\n" + - " $ref: '#/components/requestBodies/User'\n" + + " $ref: \"#/components/requestBodies/User\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + @@ -1494,7 +1494,7 @@ public void testRequestBodyWithFilter() { " description: Defines a simple get operation with a payload complex input object\n" + " operationId: sendPayload\n" + " requestBody:\n" + - " $ref: '#/components/requestBodies/User'\n" + + " $ref: \"#/components/requestBodies/User\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + @@ -1572,7 +1572,7 @@ public void testParameterWithRef() { " description: Defines a simple get operation with a payload complex input object\n" + " operationId: sendPayload\n" + " parameters:\n" + - " - $ref: '#/components/parameters/id'\n" + + " - $ref: \"#/components/parameters/id\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + @@ -1623,7 +1623,7 @@ public void testParameterWithFilter() { " description: Defines a simple get operation with a payload complex input object\n" + " operationId: sendPayload\n" + " parameters:\n" + - " - $ref: '#/components/parameters/id'\n" + + " - $ref: \"#/components/parameters/id\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + @@ -1693,7 +1693,7 @@ public void testExampleWithRef() { " description: subscriptionId_1\n" + " value: 12345\n" + " externalValue: Subscription external value 1\n" + - " $ref: '#/components/examples/Id'\n" + + " $ref: \"#/components/examples/Id\"\n" + " example: example\n" + " requestBody:\n" + " content:\n" + @@ -1707,7 +1707,7 @@ public void testExampleWithRef() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + "components:\n" + " schemas:\n" + " SubscriptionResponse:\n" + @@ -1749,7 +1749,7 @@ public void testExampleWithFilter() { " operationId: subscribe\n" + " parameters:\n" + " - example:\n" + - " $ref: '#/components/examples/Id'\n" + + " $ref: \"#/components/examples/Id\"\n" + " requestBody:\n" + " content:\n" + " '*/*':\n" + @@ -1762,7 +1762,7 @@ public void testExampleWithFilter() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + "components:\n" + " schemas:\n" + " SubscriptionResponse:\n" + @@ -1820,7 +1820,7 @@ public void testHeaderWithRef() { " headers:\n" + " Rate-Limit-Limit:\n" + " description: The number of allowed requests in the current period\n" + - " $ref: '#/components/headers/Header'\n" + + " $ref: \"#/components/headers/Header\"\n" + " style: simple\n" + " schema:\n" + " type: integer\n" + @@ -1870,7 +1870,7 @@ public void testSecuritySchemeWithRef() { " myOauth2Security:\n" + " type: oauth2\n" + " description: myOauthSecurity Description\n" + - " $ref: '#/components/securitySchemes/Security'\n" + + " $ref: \"#/components/securitySchemes/Security\"\n" + " in: header\n" + " flows:\n" + " implicit:\n" + @@ -1909,13 +1909,13 @@ public void testLinkWithRef() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " links:\n" + " address:\n" + " operationId: getAddress\n" + " parameters:\n" + " userId: $request.query.userId\n" + - " $ref: '#/components/links/Link'\n" + + " $ref: \"#/components/links/Link\"\n" + "components:\n" + " links:\n" + " Link:\n" + @@ -1948,7 +1948,7 @@ public void testCallbackWithRef() { " description: voila!\n" + " callbacks:\n" + " testCallback1:\n" + - " $ref: '#/components/callbacks/Callback'\n" + + " $ref: \"#/components/callbacks/Callback\"\n" + "components:\n" + " callbacks:\n" + " Callback:\n" + @@ -2064,7 +2064,7 @@ public void testTicket3029() { " summary: Simple get operation\n" + " operationId: sendPayload2\n" + " parameters:\n" + - " - $ref: '#/components/parameters/id'\n" + + " - $ref: \"#/components/parameters/id\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + @@ -2075,7 +2075,7 @@ public void testTicket3029() { " summary: Simple get operation\n" + " operationId: sendPayload1\n" + " parameters:\n" + - " - $ref: '#/components/parameters/id'\n" + + " - $ref: \"#/components/parameters/id\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + @@ -2108,14 +2108,14 @@ public void testTicket3082() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/ProcessTokenDTO'\n" + + " $ref: \"#/components/schemas/ProcessTokenDTO\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/ProcessTokenDTO'\n" + + " $ref: \"#/components/schemas/ProcessTokenDTO\"\n" + "components:\n" + " schemas:\n" + " ProcessTokenDTO:\n" + @@ -2154,7 +2154,7 @@ public void testSingleExample() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " example:\n" + " foo: foo\n" + " bar: bar\n" + @@ -2170,7 +2170,7 @@ public void testSingleExample() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " example:\n" + " foo: foo\n" + " bar: bar\n" + @@ -2227,7 +2227,7 @@ public void testTicket3092() { " name:\n" + " type: string\n" + " picture:\n" + - " $ref: '#/components/schemas/picture'\n" + + " $ref: \"#/components/schemas/picture\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + @@ -2240,7 +2240,7 @@ public void testTicket3092() { " content:\n" + " multipart/form-data:\n" + " schema:\n" + - " $ref: '#/components/schemas/UploadRequest'\n" + + " $ref: \"#/components/schemas/UploadRequest\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + @@ -2321,7 +2321,7 @@ public void testTicket3624() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Response'\n" + + " $ref: \"#/components/schemas/Response\"\n" + " /example/model/by/ids:\n" + " get:\n" + " tags:\n" + @@ -2334,7 +2334,7 @@ public void testTicket3624() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/ByIdResponse'\n" + + " $ref: \"#/components/schemas/ByIdResponse\"\n" + " /example/containerized/model:\n" + " get:\n" + " tags:\n" + @@ -2347,7 +2347,7 @@ public void testTicket3624() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/ContainerizedResponse'\n" + + " $ref: \"#/components/schemas/ContainerizedResponse\"\n" + "components:\n" + " schemas:\n" + " Model:\n" + @@ -2360,11 +2360,11 @@ public void testTicket3624() { " active:\n" + " type: boolean\n" + " schemaParent:\n" + - " $ref: '#/components/schemas/Model'\n" + + " $ref: \"#/components/schemas/Model\"\n" + " optionalString:\n" + " type: string\n" + " parent:\n" + - " $ref: '#/components/schemas/Model'\n" + + " $ref: \"#/components/schemas/Model\"\n" + " id:\n" + " type: integer\n" + " format: int32\n" + @@ -2377,14 +2377,14 @@ public void testTicket3624() { " models:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/Model'\n" + + " $ref: \"#/components/schemas/Model\"\n" + " ByIdResponse:\n" + " type: object\n" + " properties:\n" + " modelsById:\n" + " type: object\n" + " additionalProperties:\n" + - " $ref: '#/components/schemas/Model'\n" + + " $ref: \"#/components/schemas/Model\"\n" + " ContainerizedResponse:\n" + " type: object\n" + " properties:\n" + @@ -2394,14 +2394,14 @@ public void testTicket3624() { " containerizedModels:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/ModelContainer'\n" + + " $ref: \"#/components/schemas/ModelContainer\"\n" + " ModelContainer:\n" + " type: object\n" + " properties:\n" + " text:\n" + " type: string\n" + " model:\n" + - " $ref: '#/components/schemas/Model'\n" + + " $ref: \"#/components/schemas/Model\"\n" + " id:\n" + " type: integer\n" + " format: int32"; @@ -2656,7 +2656,7 @@ public void testTicket2144() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/ItemWithChildren'\n" + + " $ref: \"#/components/schemas/ItemWithChildren\"\n" + " /item/nogeneric/{id}:\n" + " get:\n" + " operationId: getByIdNoGeneric\n" + @@ -2672,7 +2672,7 @@ public void testTicket2144() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/ItemWithChildren'\n" + + " $ref: \"#/components/schemas/ItemWithChildren\"\n" + " /item/nogenericsamereturn/{id}:\n" + " get:\n" + " operationId: getByIdNoGenericSameReturn\n" + @@ -2688,7 +2688,7 @@ public void testTicket2144() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/BaseDTO'\n" + + " $ref: \"#/components/schemas/BaseDTO\"\n" + " /item/genericparam:\n" + " post:\n" + " operationId: genericParam\n" + @@ -2696,14 +2696,14 @@ public void testTicket2144() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/ItemWithChildren'\n" + + " $ref: \"#/components/schemas/ItemWithChildren\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/BaseDTO'\n" + + " $ref: \"#/components/schemas/BaseDTO\"\n" + "components:\n" + " schemas:\n" + " ItemWithChildren:\n" + @@ -2737,7 +2737,7 @@ public void testTicket3149() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/SampleDTO'\n" + + " $ref: \"#/components/schemas/SampleDTO\"\n" + " responses:\n" + " \"201\":\n" + " description: Created\n" + @@ -2756,7 +2756,7 @@ public void testTicket3149() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/SampleOtherDTO'\n" + + " $ref: \"#/components/schemas/SampleOtherDTO\"\n" + " responses:\n" + " \"200\":\n" + " description: OK\n" + @@ -2775,7 +2775,7 @@ public void testTicket3149() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/SampleOtherDTO'\n" + + " $ref: \"#/components/schemas/SampleOtherDTO\"\n" + " responses:\n" + " \"200\":\n" + " description: OK\n" + @@ -2935,7 +2935,7 @@ public void testSchemaProperties() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/MultipleBaseBean'\n" + + " $ref: \"#/components/schemas/MultipleBaseBean\"\n" + " /two:\n" + " get:\n" + " operationId: requestBodySchemaPropertySchema\n" + @@ -2955,7 +2955,7 @@ public void testSchemaProperties() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/MultipleBaseBean'\n" + + " $ref: \"#/components/schemas/MultipleBaseBean\"\n" + " /three:\n" + " get:\n" + " operationId: requestBodySchemaPropertySchemaArray\n" + @@ -2977,7 +2977,7 @@ public void testSchemaProperties() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/MultipleBaseBean'\n" + + " $ref: \"#/components/schemas/MultipleBaseBean\"\n" + "components:\n" + " schemas:\n" + " MultipleBaseBean:\n" + @@ -2995,7 +2995,7 @@ public void testSchemaProperties() { " type: object\n" + " description: MultipleSub1Bean\n" + " allOf:\n" + - " - $ref: '#/components/schemas/MultipleBaseBean'\n" + + " - $ref: \"#/components/schemas/MultipleBaseBean\"\n" + " - type: object\n" + " properties:\n" + " c:\n" + @@ -3005,7 +3005,7 @@ public void testSchemaProperties() { " type: object\n" + " description: MultipleSub2Bean\n" + " allOf:\n" + - " - $ref: '#/components/schemas/MultipleBaseBean'\n" + + " - $ref: \"#/components/schemas/MultipleBaseBean\"\n" + " - type: object\n" + " properties:\n" + " d:\n" + @@ -3034,7 +3034,7 @@ public void testSchemaAdditionalProperties() { " additionalProperties:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " /fromtResponseType:\n" + " get:\n" + " operationId: fromtResponseType\n" + @@ -3048,7 +3048,7 @@ public void testSchemaAdditionalProperties() { " additionalProperties:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " /schemaImpl:\n" + " get:\n" + " operationId: schemaImpl\n" + @@ -3060,7 +3060,7 @@ public void testSchemaAdditionalProperties() { " schema:\n" + " type: object\n" + " additionalProperties:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " /schemaNotImpl:\n" + " get:\n" + " operationId: schemaNotImpl\n" + @@ -3072,7 +3072,7 @@ public void testSchemaAdditionalProperties() { " schema:\n" + " type: object\n" + " additionalProperties:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + "components:\n" + " schemas:\n" + " Pet:\n" + @@ -3101,7 +3101,7 @@ public void testSchemaAdditionalPropertiesBoolean() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + "components:\n" + " schemas:\n" + " Bar:\n" + @@ -3115,12 +3115,12 @@ public void testSchemaAdditionalPropertiesBoolean() { " bar:\n" + " allOf:\n" + " - additionalProperties:\n" + - " $ref: '#/components/schemas/Bar'\n" + - " - $ref: '#/components/schemas/Bar'\n" + + " $ref: \"#/components/schemas/Bar\"\n" + + " - $ref: \"#/components/schemas/Bar\"\n" + " vbar:\n" + " allOf:\n" + " - additionalProperties: false\n" + - " - $ref: '#/components/schemas/Bar'\n" + + " - $ref: \"#/components/schemas/Bar\"\n" + " additionalProperties: false\n"; SerializationMatchers.assertEqualsToYaml(openAPI, yaml); ModelConverters.reset(); @@ -3143,7 +3143,7 @@ public void testArraySchemaImplementation() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + "components:\n" + " schemas:\n" + " Pet:\n" + @@ -3184,13 +3184,13 @@ public void testResponseReturnType() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/TestDTO'\n" + + " $ref: \"#/components/schemas/TestDTO\"\n" + " \"201\":\n" + " description: \"201\"\n" + " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/TestDTO'\n" + + " $ref: \"#/components/schemas/TestDTO\"\n" + " \"204\":\n" + " description: No Content\n" + " content:\n" + @@ -3214,7 +3214,7 @@ public void testResponseReturnType() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/TestDTO'\n" + + " $ref: \"#/components/schemas/TestDTO\"\n" + "components:\n" + " schemas:\n" + " TestDTO:\n" + @@ -3292,7 +3292,7 @@ public void testOas31Petstore() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " required: true\n" + " responses:\n" + " \"400\":\n" + @@ -3309,10 +3309,10 @@ public void testOas31Petstore() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " required: true\n" + " responses:\n" + " \"405\":\n" + @@ -3362,10 +3362,10 @@ public void testOas31Petstore() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " responses:\n" + " \"405\":\n" + " description: Invalid input\n" + @@ -3396,7 +3396,7 @@ public void testOas31Petstore() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " \"400\":\n" + " description: Invalid status value\n" + " /pet/findByTags:\n" + @@ -3418,7 +3418,7 @@ public void testOas31Petstore() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " \"400\":\n" + " description: Invalid tag value\n" + " deprecated: true\n" + @@ -3442,10 +3442,10 @@ public void testOas31Petstore() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " \"400\":\n" + " description: Invalid ID supplied\n" + " \"404\":\n" + @@ -3522,7 +3522,7 @@ public void testOas31Petstore() { " type: integer\n" + " format: int64\n" + " category:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " name:\n" + " type: string\n" + " photoUrls:\n" + @@ -3536,13 +3536,13 @@ public void testOas31Petstore() { " tags:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/Tag'\n" + + " $ref: \"#/components/schemas/Tag\"\n" + " xml:\n" + " wrapped: true\n" + " status:\n" + " type: string\n" + " if:\n" + - " $ref: '#/components/schemas/IfSchema'\n" + + " $ref: \"#/components/schemas/IfSchema\"\n" + " $id: idtest\n" + " description: pet status in the store\n" + " enum:\n" + @@ -3558,13 +3558,13 @@ public void testOas31Petstore() { " name:\n" + " type: string\n" + " annotated:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " description: child description\n" + " properties:\n" + " foo:\n" + - " $ref: '#/components/schemas/Foo'\n" + + " $ref: \"#/components/schemas/Foo\"\n" + " bar:\n" + - " $ref: '#/components/schemas/Bar'\n" + + " $ref: \"#/components/schemas/Bar\"\n" + " xml:\n" + " name: Tag\n"; SerializationMatchers.assertEqualsToYaml31(openAPI, yaml); @@ -3587,7 +3587,7 @@ public void test31RefSiblings() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/SimpleTag'\n" + + " $ref: \"#/components/schemas/SimpleTag\"\n" + "components:\n" + " schemas:\n" + " Foo:\n" + @@ -3612,11 +3612,11 @@ public void test31RefSiblings() { " type: object\n" + " properties:\n" + " annotated:\n" + - " $ref: '#/components/schemas/SimpleCategory'\n" + + " $ref: \"#/components/schemas/SimpleCategory\"\n" + " description: child description\n" + " properties:\n" + " foo:\n" + - " $ref: '#/components/schemas/Foo'\n" + + " $ref: \"#/components/schemas/Foo\"\n" + " SimpleCategory:\n" + " type: object\n" ; SerializationMatchers.assertEqualsToYaml31(openAPI, yaml); @@ -3638,7 +3638,7 @@ public void testSiblings() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + "components:\n" + " schemas:\n" + " Category:\n" + @@ -3653,7 +3653,7 @@ public void testSiblings() { " description: Pet\n" + " properties:\n" + " category:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " description: child\n"; SerializationMatchers.assertEqualsToYaml31(openAPI, yaml); } @@ -3674,7 +3674,7 @@ public void testSiblingsOnResource() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet\n" + " readOnly: true\n" + " /test/impl:\n" + @@ -3686,7 +3686,7 @@ public void testSiblingsOnResource() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet\n" + " readOnly: true\n" + "components:\n" + @@ -3713,12 +3713,12 @@ public void testSiblingsOnResourceResponse() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet\n" + " readOnly: true\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet xml\n" + " readOnly: true\n" + " /test/impl:\n" + @@ -3730,12 +3730,12 @@ public void testSiblingsOnResourceResponse() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet\n" + " readOnly: true\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet xml\n" + " readOnly: true\n" + "components:\n" + @@ -3761,7 +3761,7 @@ public void testSiblingsOnResourceRequestBody() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet\n" + " writeOnly: true\n" + " responses:\n" + @@ -3776,7 +3776,7 @@ public void testSiblingsOnResourceRequestBody() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet\n" + " writeOnly: true\n" + " responses:\n" + @@ -3807,12 +3807,12 @@ public void testSiblingsOnResourceRequestBodyMultiple() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet\n" + " writeOnly: true\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet xml\n" + " writeOnly: true\n" + " responses:\n" + @@ -3827,12 +3827,12 @@ public void testSiblingsOnResourceRequestBodyMultiple() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet\n" + " writeOnly: true\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet xml\n" + " writeOnly: true\n" + " responses:\n" + @@ -3848,12 +3848,12 @@ public void testSiblingsOnResourceRequestBodyMultiple() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet\n" + " writeOnly: true\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/PetSimple'\n" + + " $ref: \"#/components/schemas/PetSimple\"\n" + " description: resource pet xml\n" + " writeOnly: true\n" + " responses:\n" + @@ -3887,14 +3887,14 @@ public void testSiblingsOnProperty() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " description: A Pet in JSON Format\n" + " required:\n" + " - id\n" + " writeOnly: true\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " description: A Pet in XML Format\n" + " required:\n" + " - id\n" + @@ -3906,12 +3906,12 @@ public void testSiblingsOnProperty() { " content:\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " description: A Pet in XML Format\n" + " readOnly: true\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " description: A Pet in JSON Format\n" + " readOnly: true\n" + " \"400\":\n" + @@ -3939,7 +3939,7 @@ public void testSiblingsOnProperty() { " description: Pet\n" + " properties:\n" + " category:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " description: child\n" + "webhooks:\n" + " newPet:\n" + @@ -3949,7 +3949,7 @@ public void testSiblingsOnProperty() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " description: Webhook Pet\n" + " responses:\n" + " \"200\":\n" + @@ -3974,10 +3974,10 @@ public void testMisc31() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/ModelWithOAS31Stuff'\n" + + " $ref: \"#/components/schemas/ModelWithOAS31Stuff\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/ModelWithOAS31Stuff'\n" + + " $ref: \"#/components/schemas/ModelWithOAS31Stuff\"\n" + "components:\n" + " schemas:\n" + " ModelWithOAS31Stuff:\n" + @@ -4017,14 +4017,14 @@ public void testMisc31() { " type: string\n" + " contentMediaType: application/jwt\n" + " contentSchema:\n" + - " $ref: '#/components/schemas/MultipleBaseBean'\n" + + " $ref: \"#/components/schemas/MultipleBaseBean\"\n" + " address:\n" + - " $ref: '#/components/schemas/Address'\n" + + " $ref: \"#/components/schemas/Address\"\n" + " client:\n" + " type: string\n" + " dependentSchemas:\n" + " creditCard:\n" + - " $ref: '#/components/schemas/CreditCard'\n" + + " $ref: \"#/components/schemas/CreditCard\"\n" + " MultipleBaseBean:\n" + " type: object\n" + " description: MultipleBaseBean\n" + @@ -4038,7 +4038,7 @@ public void testMisc31() { " type: string\n" + " MultipleSub1Bean:\n" + " allOf:\n" + - " - $ref: '#/components/schemas/MultipleBaseBean'\n" + + " - $ref: \"#/components/schemas/MultipleBaseBean\"\n" + " - type: object\n" + " properties:\n" + " c:\n" + @@ -4047,7 +4047,7 @@ public void testMisc31() { " description: MultipleSub1Bean\n" + " MultipleSub2Bean:\n" + " allOf:\n" + - " - $ref: '#/components/schemas/MultipleBaseBean'\n" + + " - $ref: \"#/components/schemas/MultipleBaseBean\"\n" + " - type: object\n" + " properties:\n" + " d:\n" + @@ -4057,11 +4057,11 @@ public void testMisc31() { " Address:\n" + " type: object\n" + " if:\n" + - " $ref: '#/components/schemas/AnnotatedCountry'\n" + + " $ref: \"#/components/schemas/AnnotatedCountry\"\n" + " then:\n" + - " $ref: '#/components/schemas/PostalCodeNumberPattern'\n" + + " $ref: \"#/components/schemas/PostalCodeNumberPattern\"\n" + " else:\n" + - " $ref: '#/components/schemas/PostalCodePattern'\n" + + " $ref: \"#/components/schemas/PostalCodePattern\"\n" + " dependentRequired:\n" + " street:\n" + " - country\n" + @@ -4074,7 +4074,7 @@ public void testMisc31() { " - United States of America\n" + " - Canada\n" + " propertyNames:\n" + - " $ref: '#/components/schemas/PropertyNamesPattern'\n" + + " $ref: \"#/components/schemas/PropertyNamesPattern\"\n" + " AnnotatedCountry:\n" + " type: object\n" + " properties:\n" + @@ -4117,7 +4117,7 @@ public void test4446CyclicProp() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/MyPojo'\n" + + " $ref: \"#/components/schemas/MyPojo\"\n" + "components:\n" + " schemas:\n" + " MyPojo:\n" + @@ -4130,7 +4130,7 @@ public void test4446CyclicProp() { " morePojos:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/MyPojo'\n"; + " $ref: \"#/components/schemas/MyPojo\"\n"; SerializationMatchers.assertEqualsToYaml(openAPI, yaml); } @@ -4186,7 +4186,7 @@ public void test4483Response() { " schema:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/LocalizedError'\n" + + " $ref: \"#/components/schemas/LocalizedError\"\n" + " \"200\":\n" + " description: test\n" + " content:\n" + @@ -4208,7 +4208,7 @@ public void test4483Response() { " schema:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/LocalizedError'\n" + + " $ref: \"#/components/schemas/LocalizedError\"\n" + " \"200\":\n" + " description: Dummy GET opresp\n" + " content:\n" + @@ -4230,7 +4230,7 @@ public void test4483Response() { " schema:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/LocalizedError'\n" + + " $ref: \"#/components/schemas/LocalizedError\"\n" + "components:\n" + " schemas:\n" + " LocalizedError:\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/SchemaResolutionAllOfTest.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/SchemaResolutionAllOfTest.java index 4235b7aecc..f64aafc2ac 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/SchemaResolutionAllOfTest.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/SchemaResolutionAllOfTest.java @@ -24,7 +24,7 @@ public void testSchemaResolutionAllOf() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/InlineSchemaFirst'\n" + + " $ref: \"#/components/schemas/InlineSchemaFirst\"\n" + " /test/inlineSchemaSecond:\n" + " get:\n" + " operationId: inlineSchemaFirst_1\n" + @@ -34,7 +34,7 @@ public void testSchemaResolutionAllOf() { " schema:\n" + " allOf:\n" + " - description: InlineSchemaSecond API\n" + - " - $ref: '#/components/schemas/InlineSchemaFirst'\n" + + " - $ref: \"#/components/schemas/InlineSchemaFirst\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + @@ -46,7 +46,7 @@ public void testSchemaResolutionAllOf() { " type: object\n" + " properties:\n" + " property1:\n" + - " $ref: '#/components/schemas/InlineSchemaPropertyFirst'\n" + + " $ref: \"#/components/schemas/InlineSchemaPropertyFirst\"\n" + " InlineSchemaPropertyFirst:\n" + " type: object\n" + " properties:\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/SchemaResolutionAnnotationTest.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/SchemaResolutionAnnotationTest.java index c5e77c3492..57be1ac7f9 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/SchemaResolutionAnnotationTest.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/SchemaResolutionAnnotationTest.java @@ -25,7 +25,7 @@ public void testSchemaResolutionAnnotation() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/InlineSchemaFirst'\n" + + " $ref: \"#/components/schemas/InlineSchemaFirst\"\n" + " /test/inlineSchemaSecond:\n" + " get:\n" + " operationId: inlineSchemaSecond\n" + @@ -38,9 +38,9 @@ public void testSchemaResolutionAnnotation() { " foo:\n" + " type: string\n" + " propertySecond1:\n" + - " $ref: '#/components/schemas/InlineSchemaPropertySecond'\n" + + " $ref: \"#/components/schemas/InlineSchemaPropertySecond\"\n" + " property2:\n" + - " $ref: '#/components/schemas/InlineSchemaPropertyFirst'\n" + + " $ref: \"#/components/schemas/InlineSchemaPropertyFirst\"\n" + " description: InlineSchemaSecond API\n" + " responses:\n" + " default:\n" + @@ -48,7 +48,7 @@ public void testSchemaResolutionAnnotation() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/InlineSchemaSecond'\n" + + " $ref: \"#/components/schemas/InlineSchemaSecond\"\n" + "components:\n" + " schemas:\n" + " InlineSchemaFirst:\n" + @@ -58,7 +58,7 @@ public void testSchemaResolutionAnnotation() { " description: InlineSchemaFirst property 1\n" + " nullable: true\n" + " allOf:\n" + - " - $ref: '#/components/schemas/InlineSchemaPropertyFirst'\n" + + " - $ref: \"#/components/schemas/InlineSchemaPropertyFirst\"\n" + " property2:\n" + " type: object\n" + " properties:\n" + @@ -77,7 +77,7 @@ public void testSchemaResolutionAnnotation() { " type: object\n" + " properties:\n" + " bar:\n" + - " $ref: '#/components/schemas/InlineSchemaSimple'\n" + + " $ref: \"#/components/schemas/InlineSchemaSimple\"\n" + " description: propertysecond\n" + " nullable: true\n" + " example: examplesecond\n" + @@ -93,9 +93,9 @@ public void testSchemaResolutionAnnotation() { " foo:\n" + " type: string\n" + " propertySecond1:\n" + - " $ref: '#/components/schemas/InlineSchemaPropertySecond'\n" + + " $ref: \"#/components/schemas/InlineSchemaPropertySecond\"\n" + " property2:\n" + - " $ref: '#/components/schemas/InlineSchemaPropertyFirst'\n" + + " $ref: \"#/components/schemas/InlineSchemaPropertyFirst\"\n" + " description: InlineSchemaSecond API\n" + " InlineSchemaSimple:\n" + " type: object\n" + @@ -110,7 +110,7 @@ public void testSchemaResolutionAnnotation() { " description: property 2\n" + " example: example\n" + " allOf:\n" + - " - $ref: '#/components/schemas/InlineSchemaPropertySimple'\n"; + " - $ref: \"#/components/schemas/InlineSchemaPropertySimple\"\n"; SerializationMatchers.assertEqualsToYaml(openAPI, yaml); ModelConverters.reset(); } diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/callbacks/CallbackTest.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/callbacks/CallbackTest.java index 06931862a1..a8229bfeda 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/callbacks/CallbackTest.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/callbacks/CallbackTest.java @@ -52,7 +52,7 @@ public void testSimpleCallback() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + " callbacks:\n" + " subscription:\n" + " http://$request.query.url:\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/examples/ExamplesTest.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/examples/ExamplesTest.java index bc08d3bc2b..423455dbdc 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/examples/ExamplesTest.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/examples/ExamplesTest.java @@ -359,7 +359,7 @@ public void testFullExample() { " required: true\n" + " style: simple\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + " examples:\n" + " subscriptionId_1:\n" + " summary: Subscription number 12345\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/operations/AnnotatedOperationMethodTest.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/operations/AnnotatedOperationMethodTest.java index f17409fde4..aa2f63c48d 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/operations/AnnotatedOperationMethodTest.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/operations/AnnotatedOperationMethodTest.java @@ -114,13 +114,13 @@ public void testGetOperationWithResponsePayloadAndAlternateCodes() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/SampleResponseSchema'\n" + + " $ref: \"#/components/schemas/SampleResponseSchema\"\n" + " default:\n" + " description: boo\n" + " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/GenericError'\n" + + " $ref: \"#/components/schemas/GenericError\"\n" + " examples:\n" + " boo:\n" + " summary: example of boo\n" + @@ -197,7 +197,7 @@ public void testOperationWithResponseExamples() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/SampleResponseSchema'\n" + + " $ref: \"#/components/schemas/SampleResponseSchema\"\n" + " examples:\n" + " basic:\n" + " summary: shows a basic example\n" + @@ -229,7 +229,7 @@ public void testOperationWithParameterExample() { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/SampleResponseSchema'\n" + + " $ref: \"#/components/schemas/SampleResponseSchema\"\n" + " examples:\n" + " basic:\n" + " summary: shows a basic example\n" + @@ -578,7 +578,7 @@ public void testOperationWithResponseMultipleHeadersImplementationSchema() { " style: simple\n" + " explode: true\n" + " schema:\n" + - " $ref: '#/components/schemas/SampleHeaderSchema'\n" + + " $ref: \"#/components/schemas/SampleHeaderSchema\"\n" + " Rate-Limit-Limit:\n" + " description: The number of allowed requests in the current period\n" + " style: simple\n" + @@ -588,7 +588,7 @@ public void testOperationWithResponseMultipleHeadersImplementationSchema() { " minItems: 1\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/SampleHeaderSchema'\n" + + " $ref: \"#/components/schemas/SampleHeaderSchema\"\n" + " deprecated: true\n" + "components:\n" + " schemas:\n" + @@ -706,7 +706,7 @@ public void testCompletePetResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " \"400\":\n" + " description: Invalid tag value\n" + " deprecated: true\n" + @@ -721,7 +721,7 @@ public void testCompletePetResource() throws IOException { " required: true\n" + " style: matrix\n" + " schema:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " - name: skip\n" + " in: query\n" + " schema:\n" + @@ -737,7 +737,7 @@ public void testCompletePetResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " \"400\":\n" + " description: Invalid category value\n" + " /pet/{petId}:\n" + @@ -759,10 +759,10 @@ public void testCompletePetResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " \"400\":\n" + " description: Invalid ID supplied\n" + " \"404\":\n" + @@ -775,10 +775,10 @@ public void testCompletePetResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " responses:\n" + " \"405\":\n" + " description: Invalid input\n" + @@ -827,7 +827,7 @@ public void testCompletePetResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " required: true\n" + " responses:\n" + " \"400\":\n" + @@ -844,10 +844,10 @@ public void testCompletePetResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " required: true\n" + " responses:\n" + " \"405\":\n" + @@ -879,7 +879,7 @@ public void testCompletePetResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " \"400\":\n" + " description: Invalid status value\n" + "components:\n" + @@ -911,7 +911,7 @@ public void testCompletePetResource() throws IOException { " type: integer\n" + " format: int64\n" + " category:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " name:\n" + " type: string\n" + " photoUrls:\n" + @@ -927,7 +927,7 @@ public void testCompletePetResource() throws IOException { " xml:\n" + " wrapped: true\n" + " items:\n" + - " $ref: '#/components/schemas/Tag'\n" + + " $ref: \"#/components/schemas/Tag\"\n" + " status:\n" + " type: string\n" + " description: pet status in the store\n" + @@ -954,7 +954,7 @@ public void testGenericResponseResource() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/SomethingResponse'\n" + + " $ref: \"#/components/schemas/SomethingResponse\"\n" + " /overridden:\n" + " get:\n" + " summary: Returns a list of somethings\n" + @@ -964,21 +964,21 @@ public void testGenericResponseResource() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/Something'\n" + + " $ref: \"#/components/schemas/Something\"\n" + "components:\n" + " schemas:\n" + " SomethingResponse:\n" + " type: object\n" + " properties:\n" + " data:\n" + - " $ref: '#/components/schemas/DataSomething'\n" + + " $ref: \"#/components/schemas/DataSomething\"\n" + " DataSomething:\n" + " type: object\n" + " properties:\n" + " items:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/Something'\n" + + " $ref: \"#/components/schemas/Something\"\n" + " Something:\n" + " type: object\n" + " properties:\n" + @@ -1001,7 +1001,7 @@ public void testCompleteUserResource() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " required: true\n" + " responses:\n" + " default:\n" + @@ -1020,7 +1020,7 @@ public void testCompleteUserResource() throws IOException { " schema:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " required: true\n" + " responses:\n" + " default:\n" + @@ -1039,7 +1039,7 @@ public void testCompleteUserResource() throws IOException { " schema:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " required: true\n" + " responses:\n" + " default:\n" + @@ -1064,7 +1064,7 @@ public void testCompleteUserResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " \"400\":\n" + " description: User not found\n" + " put:\n" + @@ -1094,7 +1094,7 @@ public void testCompleteUserResource() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " required: true\n" + " responses:\n" + " \"200\":\n" + @@ -1204,10 +1204,10 @@ public void testSimpleUserResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " required: true\n" + " responses:\n" + " default:\n" + @@ -1225,10 +1225,10 @@ public void testSimpleUserResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " required: true\n" + " responses:\n" + " default:\n" + @@ -1236,10 +1236,10 @@ public void testSimpleUserResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " /user/createUserWithResponseAnnotation:\n" + " post:\n" + " summary: Create user with response annotation\n" + @@ -1250,10 +1250,10 @@ public void testSimpleUserResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " required: true\n" + " responses:\n" + " \"200\":\n" + @@ -1261,10 +1261,10 @@ public void testSimpleUserResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " /user/createUserWithReturnTypeAndResponseAnnotation:\n" + " post:\n" + " summary: Create user with return type and response annotation\n" + @@ -1275,10 +1275,10 @@ public void testSimpleUserResource() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " required: true\n" + " responses:\n" + " \"200\":\n" + @@ -1334,7 +1334,7 @@ public void testHiddenAnnotatedUserResource() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/UserResourceBean'\n" + + " $ref: \"#/components/schemas/UserResourceBean\"\n" + " required: true\n" + " responses:\n" + " default:\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/operations/MergedOperationTest.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/operations/MergedOperationTest.java index b5658c10ce..3bdf332501 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/operations/MergedOperationTest.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/operations/MergedOperationTest.java @@ -61,7 +61,7 @@ public void testAnnotatedParameters() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/SimpleResponse'\n" + + " $ref: \"#/components/schemas/SimpleResponse\"\n" + "components:\n" + " schemas:\n" + " SimpleResponse:\n" + @@ -108,7 +108,7 @@ public void testPartiallyAnnotatedMethod() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/SimpleResponse'\n" + + " $ref: \"#/components/schemas/SimpleResponse\"\n" + "components:\n" + " schemas:\n" + " SimpleResponse:\n" + @@ -146,7 +146,7 @@ public void testRequestBody() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/InputValue'\n" + + " $ref: \"#/components/schemas/InputValue\"\n" + " responses:\n" + " \"201\":\n" + " description: value successfully processed\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/parameters/ParametersTest.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/parameters/ParametersTest.java index 625dcf67b9..4ca727e072 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/parameters/ParametersTest.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/parameters/ParametersTest.java @@ -58,7 +58,7 @@ public void testParameters() { " required: true\n" + " style: simple\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + " - name: formId\n" + " in: query\n" + " required: true\n" + @@ -70,13 +70,13 @@ public void testParameters() { " required: true\n" + " explode: false\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + " - name: explodeTrue\n" + " in: query\n" + " required: true\n" + " explode: true\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + " - name: explodeAvoiding\n" + " in: query\n" + " required: true\n" + @@ -110,20 +110,20 @@ public void testParameters() { " uniqueItems: true\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + " - name: arrayParameterImplementation2\n" + " in: query\n" + " required: true\n" + " explode: true\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + " responses:\n" + " default:\n" + " description: test description\n" + " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + "components:\n" + " schemas:\n" + " SubscriptionResponse:\n" + @@ -157,14 +157,14 @@ public void testArraySchemaParameters() { " uniqueItems: true\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + " responses:\n" + " default:\n" + " description: test description\n" + " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + "components:\n" + " schemas:\n" + " SubscriptionResponse:\n" + @@ -193,7 +193,7 @@ public void testRepeatableParameters() { " required: true\n" + " style: simple\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + " - name: formId\n" + " in: query\n" + " required: true\n" + @@ -205,13 +205,13 @@ public void testRepeatableParameters() { " required: true\n" + " explode: false\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + " - name: explodeTrue\n" + " in: query\n" + " required: true\n" + " explode: true\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + " - name: explodeAvoiding\n" + " in: query\n" + " required: true\n" + @@ -245,20 +245,20 @@ public void testRepeatableParameters() { " uniqueItems: true\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + " - name: arrayParameterImplementation2\n" + " in: query\n" + " required: true\n" + " explode: true\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + " responses:\n" + " default:\n" + " description: test description\n" + " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/SubscriptionResponse'\n" + + " $ref: \"#/components/schemas/SubscriptionResponse\"\n" + "components:\n" + " schemas:\n" + " SubscriptionResponse:\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/pathItems/OperationsWithLinksTest.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/pathItems/OperationsWithLinksTest.java index 94f50fa6e6..1472530b09 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/pathItems/OperationsWithLinksTest.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/pathItems/OperationsWithLinksTest.java @@ -39,7 +39,7 @@ public void createOperationWithLinks() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " links:\n" + " address:\n" + " operationId: getAddress\n" + @@ -59,7 +59,7 @@ public void createOperationWithLinks() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/Address'\n" + + " $ref: \"#/components/schemas/Address\"\n" + "components:\n" + " schemas:\n" + " User:\n" + @@ -99,7 +99,7 @@ public void createOperationWithLinksAndRequestBody() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " links:\n" + " address:\n" + " operationId: addAddress\n" + @@ -120,7 +120,7 @@ public void createOperationWithLinksAndRequestBody() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/Address'\n" + + " $ref: \"#/components/schemas/Address\"\n" + "components:\n" + " schemas:\n" + " User:\n" + @@ -160,7 +160,7 @@ public void createOperationWithResponseNoAnnotation() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + "components:\n" + " schemas:\n" + " User:\n" + @@ -311,7 +311,7 @@ public void createOperationWithLinkReferences() { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " links:\n" + " user:\n" + " operationId: getUser\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/requests/RequestBodyTest.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/requests/RequestBodyTest.java index 96f1e6d86c..5b8c544bf0 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/requests/RequestBodyTest.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/annotations/requests/RequestBodyTest.java @@ -52,7 +52,7 @@ public void oneRequestBodyMultipleParameters() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + @@ -76,7 +76,7 @@ public void oneRequestBodyMultipleParameters() throws IOException { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " required: true\n" + " responses:\n" + " default:\n" + @@ -110,10 +110,10 @@ public void oneRequestBodyMultipleParameters() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/User'\n" + + " $ref: \"#/components/schemas/User\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + @@ -127,10 +127,10 @@ public void oneRequestBodyMultipleParameters() throws IOException { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " application/xml:\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " responses:\n" + " default:\n" + " description: default response\n" + @@ -208,7 +208,7 @@ public void oneRequestBodyMultipleParameters() throws IOException { " type: integer\n" + " format: int64\n" + " category:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " name:\n" + " type: string\n" + " photoUrls:\n" + @@ -224,7 +224,7 @@ public void oneRequestBodyMultipleParameters() throws IOException { " xml:\n" + " wrapped: true\n" + " items:\n" + - " $ref: '#/components/schemas/Tag'\n" + + " $ref: \"#/components/schemas/Tag\"\n" + " status:\n" + " type: string\n" + " description: pet status in the store\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/integration/SortedOutputTest.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/integration/SortedOutputTest.java index d815009a2c..8c3a9a7071 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/integration/SortedOutputTest.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/integration/SortedOutputTest.java @@ -201,7 +201,7 @@ public void configOutputTest() throws Exception { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + " description: default response\n" + "components:\n" + " schemas:\n" + @@ -219,7 +219,7 @@ public void configOutputTest() throws Exception { " type: object\n" + " properties:\n" + " category:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " id:\n" + " type: integer\n" + " format: int64\n" + @@ -241,7 +241,7 @@ public void configOutputTest() throws Exception { " tags:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/Tag'\n" + + " $ref: \"#/components/schemas/Tag\"\n" + " xml:\n" + " wrapped: true\n" + " xml:\n" + @@ -268,7 +268,7 @@ public void configOutputTest() throws Exception { " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/Pet'\n" + + " $ref: \"#/components/schemas/Pet\"\n" + "components:\n" + " schemas:\n" + " Category:\n" + @@ -288,7 +288,7 @@ public void configOutputTest() throws Exception { " type: integer\n" + " format: int64\n" + " category:\n" + - " $ref: '#/components/schemas/Category'\n" + + " $ref: \"#/components/schemas/Category\"\n" + " name:\n" + " type: string\n" + " photoUrls:\n" + @@ -304,7 +304,7 @@ public void configOutputTest() throws Exception { " xml:\n" + " wrapped: true\n" + " items:\n" + - " $ref: '#/components/schemas/Tag'\n" + + " $ref: \"#/components/schemas/Tag\"\n" + " status:\n" + " type: string\n" + " description: pet status in the store\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/it/OpenApiResourceIT.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/it/OpenApiResourceIT.java index 55d0cf37bc..d14e7e3835 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/it/OpenApiResourceIT.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/it/OpenApiResourceIT.java @@ -375,7 +375,7 @@ public class OpenApiResourceIT extends AbstractAnnotationTest { " schema:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/Car'\n" + + " $ref: \"#/components/schemas/Car\"\n" + " /cars/detail:\n" + " get:\n" + " tags:\n" + @@ -389,7 +389,7 @@ public class OpenApiResourceIT extends AbstractAnnotationTest { " schema:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/Car_Detail'\n" + + " $ref: \"#/components/schemas/Car_Detail\"\n" + " /cars/sale:\n" + " get:\n" + " tags:\n" + @@ -403,7 +403,7 @@ public class OpenApiResourceIT extends AbstractAnnotationTest { " schema:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/Car_Summary-or-Sale'\n" + + " $ref: \"#/components/schemas/Car_Summary-or-Sale\"\n" + " /cars/summary:\n" + " get:\n" + " tags:\n" + @@ -417,7 +417,7 @@ public class OpenApiResourceIT extends AbstractAnnotationTest { " schema:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/Car_Summary'\n" + + " $ref: \"#/components/schemas/Car_Summary\"\n" + " /files/attach:\n" + " put:\n" + " operationId: putFile\n" + @@ -491,7 +491,7 @@ public class OpenApiResourceIT extends AbstractAnnotationTest { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Widget'\n" + + " $ref: \"#/components/schemas/Widget\"\n" + "components:\n" + " schemas:\n" + " Car:\n" + @@ -509,7 +509,7 @@ public class OpenApiResourceIT extends AbstractAnnotationTest { " tires:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/Tire'\n" + + " $ref: \"#/components/schemas/Tire\"\n" + " Car_Detail:\n" + " type: object\n" + " properties:\n" + @@ -522,7 +522,7 @@ public class OpenApiResourceIT extends AbstractAnnotationTest { " tires:\n" + " type: array\n" + " items:\n" + - " $ref: '#/components/schemas/Tire_Detail'\n" + + " $ref: \"#/components/schemas/Tire_Detail\"\n" + " Car_Summary:\n" + " type: object\n" + " properties:\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/resources/RefParameter3074Resource.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/resources/RefParameter3074Resource.java index 5a3c6b9885..62a81b73ab 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/resources/RefParameter3074Resource.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/resources/RefParameter3074Resource.java @@ -23,12 +23,12 @@ public class RefParameter3074Resource { " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Employee'\n" + + " $ref: \"#/components/schemas/Employee\"\n" + " \"500\":\n" + " content:\n" + " application/json:\n" + " schema:\n" + - " $ref: '#/components/schemas/Error'\n" + + " $ref: \"#/components/schemas/Error\"\n" + "components:\n" + " schemas:\n" + " Employee:\n" + diff --git a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/resources/extensions/ExtensionsResource.java b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/resources/extensions/ExtensionsResource.java index 62506e1008..7e8731517a 100644 --- a/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/resources/extensions/ExtensionsResource.java +++ b/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/resources/extensions/ExtensionsResource.java @@ -518,7 +518,7 @@ public ExtensionUser setUser( " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/ExtensionUser'\n" + + " $ref: \"#/components/schemas/ExtensionUser\"\n" + " x-extension:\n" + " name: param\n" + " x-extension2:\n" + @@ -529,7 +529,7 @@ public ExtensionUser setUser( " content:\n" + " '*/*':\n" + " schema:\n" + - " $ref: '#/components/schemas/ExtensionUser'\n" + + " $ref: \"#/components/schemas/ExtensionUser\"\n" + " x-content:\n" + " name: Josh\n" + " x-content-extensions:\n" + diff --git a/modules/swagger-jaxrs2/src/test/resources/BinaryParameterResource.yaml b/modules/swagger-jaxrs2/src/test/resources/BinaryParameterResource.yaml index ad05aac34b..816ce4ea55 100644 --- a/modules/swagger-jaxrs2/src/test/resources/BinaryParameterResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/BinaryParameterResource.yaml @@ -9,7 +9,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Item' + $ref: "#/components/schemas/Item" required: true responses: "201": @@ -19,7 +19,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Item' + $ref: "#/components/schemas/Item" components: schemas: Item: diff --git a/modules/swagger-jaxrs2/src/test/resources/examples/AnnotatedModelAndContentExample.yaml b/modules/swagger-jaxrs2/src/test/resources/examples/AnnotatedModelAndContentExample.yaml index 11f0bfdaa6..9b989ff8b0 100644 --- a/modules/swagger-jaxrs2/src/test/resources/examples/AnnotatedModelAndContentExample.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/examples/AnnotatedModelAndContentExample.yaml @@ -8,7 +8,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AnnotatedSubscription' + $ref: "#/components/schemas/AnnotatedSubscription" examples: Default Request 2: summary: Subscription Example 2 @@ -31,7 +31,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/AnnotatedSubscription' + $ref: "#/components/schemas/AnnotatedSubscription" components: schemas: AnnotatedSubscriptionItem: @@ -47,7 +47,7 @@ components: subscriptionId: type: string subscriptionItem: - $ref: '#/components/schemas/AnnotatedSubscriptionItem' + $ref: "#/components/schemas/AnnotatedSubscriptionItem" example: subscriptionId: "1" subscriptionItem: diff --git a/modules/swagger-jaxrs2/src/test/resources/examples/AnnotatedModelExample.yaml b/modules/swagger-jaxrs2/src/test/resources/examples/AnnotatedModelExample.yaml index c30b462679..e10f2e5b79 100644 --- a/modules/swagger-jaxrs2/src/test/resources/examples/AnnotatedModelExample.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/examples/AnnotatedModelExample.yaml @@ -8,7 +8,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/AnnotatedSubscription' + $ref: "#/components/schemas/AnnotatedSubscription" required: true responses: default: @@ -16,7 +16,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/AnnotatedSubscription' + $ref: "#/components/schemas/AnnotatedSubscription" components: schemas: AnnotatedSubscriptionItem: @@ -32,7 +32,7 @@ components: subscriptionId: type: string subscriptionItem: - $ref: '#/components/schemas/AnnotatedSubscriptionItem' + $ref: "#/components/schemas/AnnotatedSubscriptionItem" example: subscriptionId: "1" subscriptionItem: diff --git a/modules/swagger-jaxrs2/src/test/resources/examples/ParameterExample.yaml b/modules/swagger-jaxrs2/src/test/resources/examples/ParameterExample.yaml index 36850f83a8..7123893d12 100644 --- a/modules/swagger-jaxrs2/src/test/resources/examples/ParameterExample.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/examples/ParameterExample.yaml @@ -42,7 +42,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Subscription' + $ref: "#/components/schemas/Subscription" components: schemas: SubscriptionItem: @@ -56,4 +56,4 @@ components: subscriptionId: type: string subscriptionItem: - $ref: '#/components/schemas/SubscriptionItem' + $ref: "#/components/schemas/SubscriptionItem" diff --git a/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExample.yaml b/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExample.yaml index fb33e9ac25..b33c7ea216 100644 --- a/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExample.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExample.yaml @@ -8,7 +8,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Subscription' + $ref: "#/components/schemas/Subscription" examples: Default Request: summary: Subscription Example @@ -24,7 +24,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Subscription' + $ref: "#/components/schemas/Subscription" components: schemas: SubscriptionItem: @@ -38,4 +38,4 @@ components: subscriptionId: type: string subscriptionItem: - $ref: '#/components/schemas/SubscriptionItem' \ No newline at end of file + $ref: "#/components/schemas/SubscriptionItem" \ No newline at end of file diff --git a/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithConsumes.yaml b/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithConsumes.yaml index 3c7b037c4e..b5f9383d74 100644 --- a/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithConsumes.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithConsumes.yaml @@ -8,7 +8,7 @@ paths: content: 'application/json': schema: - $ref: '#/components/schemas/Subscription' + $ref: "#/components/schemas/Subscription" examples: Default Request: summary: Subscription Example @@ -24,7 +24,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Subscription' + $ref: "#/components/schemas/Subscription" components: schemas: SubscriptionItem: @@ -38,4 +38,4 @@ components: subscriptionId: type: string subscriptionItem: - $ref: '#/components/schemas/SubscriptionItem' \ No newline at end of file + $ref: "#/components/schemas/SubscriptionItem" \ No newline at end of file diff --git a/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithMediatype.yaml b/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithMediatype.yaml index 3c7b037c4e..b5f9383d74 100644 --- a/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithMediatype.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithMediatype.yaml @@ -8,7 +8,7 @@ paths: content: 'application/json': schema: - $ref: '#/components/schemas/Subscription' + $ref: "#/components/schemas/Subscription" examples: Default Request: summary: Subscription Example @@ -24,7 +24,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Subscription' + $ref: "#/components/schemas/Subscription" components: schemas: SubscriptionItem: @@ -38,4 +38,4 @@ components: subscriptionId: type: string subscriptionItem: - $ref: '#/components/schemas/SubscriptionItem' \ No newline at end of file + $ref: "#/components/schemas/SubscriptionItem" \ No newline at end of file diff --git a/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithSchema.yaml b/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithSchema.yaml index 8e362d8db9..d99ee60b75 100644 --- a/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithSchema.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithSchema.yaml @@ -24,7 +24,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Subscription' + $ref: "#/components/schemas/Subscription" components: schemas: SubscriptionItem: @@ -38,4 +38,4 @@ components: subscriptionId: type: string subscriptionItem: - $ref: '#/components/schemas/SubscriptionItem' + $ref: "#/components/schemas/SubscriptionItem" diff --git a/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithSchemaImplementation.yaml b/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithSchemaImplementation.yaml index fb33e9ac25..b33c7ea216 100644 --- a/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithSchemaImplementation.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/examples/RequestBodyContentExampleWithSchemaImplementation.yaml @@ -8,7 +8,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Subscription' + $ref: "#/components/schemas/Subscription" examples: Default Request: summary: Subscription Example @@ -24,7 +24,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Subscription' + $ref: "#/components/schemas/Subscription" components: schemas: SubscriptionItem: @@ -38,4 +38,4 @@ components: subscriptionId: type: string subscriptionItem: - $ref: '#/components/schemas/SubscriptionItem' \ No newline at end of file + $ref: "#/components/schemas/SubscriptionItem" \ No newline at end of file diff --git a/modules/swagger-jaxrs2/src/test/resources/examples/ResponseExample.yaml b/modules/swagger-jaxrs2/src/test/resources/examples/ResponseExample.yaml index e0fd32f333..dc98468d6f 100644 --- a/modules/swagger-jaxrs2/src/test/resources/examples/ResponseExample.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/examples/ResponseExample.yaml @@ -12,7 +12,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" examples: Default Response: summary: Subscription Response Example diff --git a/modules/swagger-jaxrs2/src/test/resources/examples/ResponseExampleSchemaImplementation.yaml b/modules/swagger-jaxrs2/src/test/resources/examples/ResponseExampleSchemaImplementation.yaml index 8dee608936..5b12cce84e 100644 --- a/modules/swagger-jaxrs2/src/test/resources/examples/ResponseExampleSchemaImplementation.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/examples/ResponseExampleSchemaImplementation.yaml @@ -12,7 +12,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Subscription' + $ref: "#/components/schemas/Subscription" examples: Default Response: summary: Subscription Response Example @@ -39,4 +39,4 @@ components: subscriptionId: type: string subscriptionItem: - $ref: '#/components/schemas/SubscriptionItem' + $ref: "#/components/schemas/SubscriptionItem" diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/FullPetResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/FullPetResource.yaml index 5312ec646c..6dd4a2358e 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/FullPetResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/FullPetResource.yaml @@ -54,7 +54,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" required: true responses: "400": @@ -71,10 +71,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" application/xml: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" required: true responses: "405": @@ -124,10 +124,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" application/xml: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" responses: "405": description: Invalid input @@ -158,7 +158,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" "400": description: Invalid status value /pet/findByTags: @@ -180,7 +180,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" "400": description: Invalid tag value deprecated: true @@ -204,10 +204,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" application/xml: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" "400": description: Invalid ID supplied "404": @@ -221,7 +221,7 @@ paths: in: query description: idParam schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" responses: "200": description: voila! @@ -250,7 +250,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" /multiplecallback: get: summary: Simple get operation @@ -393,7 +393,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" links: address: operationId: getAddress @@ -471,7 +471,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" "400": description: Invalid ID supplied "404": @@ -543,7 +543,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" "400": description: Invalid ID supplied "404": @@ -617,7 +617,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" servers: - url: http://foo2 description: server 2 @@ -638,14 +638,14 @@ paths: uniqueItems: true type: array items: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" responses: default: description: test description content: '*/*': schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" /complexparameter: get: operationId: create User_1 @@ -669,7 +669,7 @@ paths: in: query description: address schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" requestBody: content: '*/*': @@ -681,7 +681,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" /multiplenoannotatedparameter: post: operationId: create User @@ -710,7 +710,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" /openapiwithcontentjaxrsannotatedparameter: get: operationId: create User_3 @@ -729,7 +729,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" /openapiwithimplementationjaxrsannotatedparameter: get: operationId: create User_4 @@ -738,14 +738,14 @@ paths: in: query description: idParam schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" responses: default: description: default response content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" /parameters: post: description: "subscribes a client to updates relevant to the requestor's account,\ @@ -758,7 +758,7 @@ paths: required: true style: simple schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: formId in: query required: true @@ -770,13 +770,13 @@ paths: required: true explode: false schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: explodeTrue in: query required: true explode: true schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: explodeAvoiding in: query required: true @@ -810,13 +810,13 @@ paths: uniqueItems: true type: array items: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: arrayParameterImplementation2 in: query required: true explode: true schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: id in: query description: idParam @@ -828,7 +828,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" /repeatableparameter: post: description: "subscribes a client to updates relevant to the requestor's account,\ @@ -841,7 +841,7 @@ paths: required: true style: simple schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: formId in: query required: true @@ -853,13 +853,13 @@ paths: required: true explode: false schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: explodeTrue in: query required: true explode: true schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: explodeAvoiding in: query required: true @@ -893,20 +893,20 @@ paths: uniqueItems: true type: array items: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: arrayParameterImplementation2 in: query required: true explode: true schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" responses: default: description: test description content: '*/*': schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" /singlejaxrsannotatedparameter: get: operationId: create User_5 @@ -921,7 +921,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" /singlenoannotatedparameter: get: operationId: create User_6 @@ -936,7 +936,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" /methodWithRequestBodyAndTwoParameters: post: summary: Create user @@ -956,7 +956,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" required: true responses: default: @@ -992,7 +992,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" required: true responses: default: @@ -1009,7 +1009,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" required: true responses: default: @@ -1045,7 +1045,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" responses: default: description: default response @@ -1060,10 +1060,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" application/xml: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" responses: default: description: default response @@ -1079,7 +1079,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" required: true responses: default: @@ -1096,10 +1096,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" application/xml: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" responses: default: description: default response @@ -1114,10 +1114,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" application/xml: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" responses: default: description: default response @@ -1153,7 +1153,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" default: description: Default Pet content: @@ -1176,13 +1176,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SecondSampleResponseSchema' + $ref: "#/components/schemas/SecondSampleResponseSchema" "400": description: boo content: '*/*': schema: - $ref: '#/components/schemas/GenericError' + $ref: "#/components/schemas/GenericError" deprecated: true /responseinmethod: get: @@ -1226,7 +1226,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" /responseinoperation: get: summary: Find Users @@ -1354,7 +1354,7 @@ components: type: integer format: int64 category: - $ref: '#/components/schemas/Category' + $ref: "#/components/schemas/Category" name: type: string photoUrls: @@ -1370,7 +1370,7 @@ components: xml: wrapped: true items: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" status: type: string description: pet status in the store diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/WebHookResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/WebHookResource.yaml index 8569aafe81..62e397cade 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/WebHookResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/WebHookResource.yaml @@ -50,11 +50,11 @@ webhooks: - string - number if: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" then: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" else: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" $anchor: parameter $anchor $schema: parameter $schema exclusiveMaximum: 100 diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/callbacks/ComplexCallback31Resource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/callbacks/ComplexCallback31Resource.yaml index 65b5cec4f2..79189d9464 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/callbacks/ComplexCallback31Resource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/callbacks/ComplexCallback31Resource.yaml @@ -9,7 +9,7 @@ paths: in: query description: idParam schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" responses: "200": description: voila! @@ -46,7 +46,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" components: schemas: User: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/callbacks/ComplexCallbackResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/callbacks/ComplexCallbackResource.yaml index d8a53bf360..4e9c0a64c5 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/callbacks/ComplexCallbackResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/callbacks/ComplexCallbackResource.yaml @@ -9,7 +9,7 @@ paths: in: query description: idParam schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" responses: "200": description: voila! @@ -38,7 +38,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" components: schemas: User: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/links/LinksResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/links/LinksResource.yaml index 76b939f539..5a6c09e071 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/links/LinksResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/links/LinksResource.yaml @@ -14,7 +14,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" links: address: operationId: getAddress diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/operation/FullyAnnotatedOperationResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/operation/FullyAnnotatedOperationResource.yaml index 55705dfe5a..3f4dfbf1d6 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/operation/FullyAnnotatedOperationResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/operation/FullyAnnotatedOperationResource.yaml @@ -20,7 +20,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" "400": description: Invalid ID supplied "404": @@ -54,7 +54,7 @@ components: type: integer format: int64 category: - $ref: '#/components/schemas/Category' + $ref: "#/components/schemas/Category" name: type: string photoUrls: @@ -70,7 +70,7 @@ components: xml: wrapped: true items: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" status: type: string description: pet status in the store diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/operation/OperationResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/operation/OperationResource.yaml index 1f78b4978c..4ea40fbf9b 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/operation/OperationResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/operation/OperationResource.yaml @@ -34,7 +34,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" "400": description: Invalid ID supplied "404": @@ -125,7 +125,7 @@ components: type: integer format: int64 category: - $ref: '#/components/schemas/Category' + $ref: "#/components/schemas/Category" name: type: string photoUrls: @@ -141,7 +141,7 @@ components: xml: wrapped: true items: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" status: type: string description: pet status in the store diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/operation/ServerOperationResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/operation/ServerOperationResource.yaml index a7a19654ff..8dd0033553 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/operation/ServerOperationResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/operation/ServerOperationResource.yaml @@ -13,7 +13,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" servers: - url: http://foo2 description: server 2 @@ -46,7 +46,7 @@ components: type: integer format: int64 category: - $ref: '#/components/schemas/Category' + $ref: "#/components/schemas/Category" name: type: string photoUrls: @@ -62,7 +62,7 @@ components: xml: wrapped: true items: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" status: type: string description: pet status in the store diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ArraySchemaResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ArraySchemaResource.yaml index 66d9ccc3a9..3e3ffa59dc 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ArraySchemaResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ArraySchemaResource.yaml @@ -17,14 +17,14 @@ paths: uniqueItems: true type: array items: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" responses: default: description: test description content: '*/*': schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" components: schemas: SubscriptionResponse: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ComplexParameterResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ComplexParameterResource.yaml index 74f44634f5..e0ef11a422 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ComplexParameterResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ComplexParameterResource.yaml @@ -17,7 +17,7 @@ paths: in: query description: address schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" requestBody: content: '*/*': @@ -29,7 +29,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" components: schemas: User: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ComplexParameterWithOperationResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ComplexParameterWithOperationResource.yaml index bcaf2d3765..886dff2eda 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ComplexParameterWithOperationResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ComplexParameterWithOperationResource.yaml @@ -23,7 +23,7 @@ paths: in: query description: address schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" requestBody: content: '*/*': @@ -35,7 +35,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" components: schemas: User: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/OpenAPIJaxRSAnnotatedParameter.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/OpenAPIJaxRSAnnotatedParameter.yaml index f2d5d0adb0..035cf81047 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/OpenAPIJaxRSAnnotatedParameter.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/OpenAPIJaxRSAnnotatedParameter.yaml @@ -15,7 +15,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" components: schemas: User: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/OpenAPIWithContentJaxRSAnnotatedParameter.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/OpenAPIWithContentJaxRSAnnotatedParameter.yaml index ce122a776e..95648b27f5 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/OpenAPIWithContentJaxRSAnnotatedParameter.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/OpenAPIWithContentJaxRSAnnotatedParameter.yaml @@ -18,7 +18,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" components: schemas: User: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/OpenAPIWithImplementationJaxRSAnnotatedParameter.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/OpenAPIWithImplementationJaxRSAnnotatedParameter.yaml index 1f44753d04..fed8140e72 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/OpenAPIWithImplementationJaxRSAnnotatedParameter.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/OpenAPIWithImplementationJaxRSAnnotatedParameter.yaml @@ -8,14 +8,14 @@ paths: in: query description: idParam schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" responses: default: description: default response content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" components: schemas: User: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/Parameters31Resource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/Parameters31Resource.yaml index e6b22d1bcc..e42efe9760 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/Parameters31Resource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/Parameters31Resource.yaml @@ -23,11 +23,11 @@ paths: - string - number if: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" then: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" else: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" $anchor: parameter $anchor $schema: parameter $schema exclusiveMaximum: 100 @@ -64,7 +64,7 @@ paths: type: array contains: {} items: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" maxContains: 50 maxItems: 10 minContains: 1 @@ -76,7 +76,7 @@ paths: required: true explode: true schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: id in: query description: idParam @@ -91,10 +91,10 @@ paths: $id: http://yourdomain.com/schemas/myschema.json dependentSchemas: pet: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" patternProperties: user: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" properties: extraObject: {} components: @@ -116,7 +116,7 @@ components: type: integer format: int64 category: - $ref: '#/components/schemas/Category' + $ref: "#/components/schemas/Category" name: type: string photoUrls: @@ -130,7 +130,7 @@ components: tags: type: array items: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" xml: wrapped: true status: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ParametersResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ParametersResource.yaml index c1117da046..4f75dbb561 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ParametersResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/ParametersResource.yaml @@ -12,7 +12,7 @@ paths: required: true style: simple schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: formId in: query required: true @@ -24,13 +24,13 @@ paths: required: true explode: false schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: explodeTrue in: query required: true explode: true schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: explodeAvoiding in: query required: true @@ -64,13 +64,13 @@ paths: uniqueItems: true type: array items: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: arrayParameterImplementation2 in: query required: true explode: true schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: id in: query description: idParam @@ -82,7 +82,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" components: schemas: SubscriptionResponse: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/RepeatableParametersResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/RepeatableParametersResource.yaml index a3d6054874..6b650a6c5c 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/RepeatableParametersResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/RepeatableParametersResource.yaml @@ -12,7 +12,7 @@ paths: required: true style: simple schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: formId in: query required: true @@ -24,13 +24,13 @@ paths: required: true explode: false schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: explodeTrue in: query required: true explode: true schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: explodeAvoiding in: query required: true @@ -64,20 +64,20 @@ paths: uniqueItems: true type: array items: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" - name: arrayParameterImplementation2 in: query required: true explode: true schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" responses: default: description: test description content: '*/*': schema: - $ref: '#/components/schemas/SubscriptionResponse' + $ref: "#/components/schemas/SubscriptionResponse" components: schemas: SubscriptionResponse: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/SingleJaxRSAnnotatedParameter.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/SingleJaxRSAnnotatedParameter.yaml index ee61624611..3bc9281ffd 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/SingleJaxRSAnnotatedParameter.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/SingleJaxRSAnnotatedParameter.yaml @@ -14,7 +14,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" components: schemas: User: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/SingleNotAnnotatedParameter.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/SingleNotAnnotatedParameter.yaml index 4faefe504b..35bfd9a337 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/SingleNotAnnotatedParameter.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/parameters/SingleNotAnnotatedParameter.yaml @@ -14,7 +14,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" components: schemas: User: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBody31Resource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBody31Resource.yaml index f01cdb9024..2c5b00cc76 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBody31Resource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBody31Resource.yaml @@ -19,7 +19,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" required: true responses: default: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBodyMethodPriorityResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBodyMethodPriorityResource.yaml index 856a2a55eb..70f93850db 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBodyMethodPriorityResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBodyMethodPriorityResource.yaml @@ -10,7 +10,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" required: true responses: default: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBodyParameterPriorityResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBodyParameterPriorityResource.yaml index a69fa6613b..703d2df93a 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBodyParameterPriorityResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBodyParameterPriorityResource.yaml @@ -10,7 +10,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" required: true responses: default: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBodyResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBodyResource.yaml index 7a82d173a5..71d80da502 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBodyResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/requestbody/RequestBodyResource.yaml @@ -10,7 +10,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" required: true responses: default: @@ -45,7 +45,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" responses: default: description: default response @@ -79,10 +79,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" application/xml: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" responses: default: description: default response @@ -97,10 +97,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" application/xml: schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" responses: default: description: default response @@ -116,10 +116,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" application/xml: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" responses: default: description: default response @@ -164,7 +164,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" required: true responses: default: @@ -224,7 +224,7 @@ components: type: integer format: int64 category: - $ref: '#/components/schemas/Category' + $ref: "#/components/schemas/Category" name: type: string photoUrls: @@ -240,7 +240,7 @@ components: xml: wrapped: true items: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" status: type: string description: pet status in the store diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/responses/ComplexResponseResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/responses/ComplexResponseResource.yaml index 8e25f56b17..2d2ee344c1 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/responses/ComplexResponseResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/responses/ComplexResponseResource.yaml @@ -11,7 +11,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/Pet' + $ref: "#/components/schemas/Pet" default: description: Default Pet content: @@ -51,7 +51,7 @@ components: type: integer format: int64 category: - $ref: '#/components/schemas/Category' + $ref: "#/components/schemas/Category" name: type: string photoUrls: @@ -67,7 +67,7 @@ components: xml: wrapped: true items: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" status: type: string description: pet status in the store diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/responses/ImplementationResponseResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/responses/ImplementationResponseResource.yaml index 465d10709a..62a11a8e7d 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/responses/ImplementationResponseResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/responses/ImplementationResponseResource.yaml @@ -12,13 +12,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SecondSampleResponseSchema' + $ref: "#/components/schemas/SecondSampleResponseSchema" "400": description: boo content: '*/*': schema: - $ref: '#/components/schemas/GenericError' + $ref: "#/components/schemas/GenericError" deprecated: true components: schemas: diff --git a/modules/swagger-jaxrs2/src/test/resources/petstore/responses/NoResponseResource.yaml b/modules/swagger-jaxrs2/src/test/resources/petstore/responses/NoResponseResource.yaml index 357384acc6..c1ea3757b5 100644 --- a/modules/swagger-jaxrs2/src/test/resources/petstore/responses/NoResponseResource.yaml +++ b/modules/swagger-jaxrs2/src/test/resources/petstore/responses/NoResponseResource.yaml @@ -11,7 +11,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" components: schemas: User: diff --git a/modules/swagger-maven-plugin/pom.xml b/modules/swagger-maven-plugin/pom.xml index e6b27aee2b..981538b175 100644 --- a/modules/swagger-maven-plugin/pom.xml +++ b/modules/swagger-maven-plugin/pom.xml @@ -88,7 +88,7 @@ org.apache.maven.plugin-tools maven-plugin-annotations - 3.15.0 + 3.15.1 provided @@ -100,7 +100,7 @@ org.codehaus.plexus plexus-archiver - 4.9.0 + 4.10.0 test @@ -145,7 +145,7 @@ org.codehaus.plexus plexus-utils - 3.5.1 + 3.6.0 org.codehaus.plexus @@ -279,20 +279,20 @@ com.github.jknack handlebars-helpers test - 4.3.1 + 4.4.0 com.github.jknack handlebars test - 4.3.1 + 4.4.0 UTF-8 3.9.9 4.13.2 - 9.4.53.v20231009 - 1.26.1 + 9.4.57.v20241219 + 1.27.1 diff --git a/modules/swagger-project-jakarta/modules/swagger-maven-plugin-jakarta/pom.xml b/modules/swagger-project-jakarta/modules/swagger-maven-plugin-jakarta/pom.xml index c6b05c3bc5..8a1a1a9dc4 100644 --- a/modules/swagger-project-jakarta/modules/swagger-maven-plugin-jakarta/pom.xml +++ b/modules/swagger-project-jakarta/modules/swagger-maven-plugin-jakarta/pom.xml @@ -141,7 +141,7 @@ org.apache.maven.plugin-tools maven-plugin-annotations - 3.15.0 + 3.15.1 provided @@ -158,7 +158,7 @@ org.codehaus.plexus plexus-utils - 3.5.1 + 3.6.0 org.codehaus.plexus diff --git a/modules/swagger-project-jakarta/pom.xml b/modules/swagger-project-jakarta/pom.xml index 952193f20a..50b7cf950f 100644 --- a/modules/swagger-project-jakarta/pom.xml +++ b/modules/swagger-project-jakarta/pom.xml @@ -474,7 +474,7 @@ 8 - 2.2.3 + 2.2.4 2.13.0 2.3 3.1.0 @@ -483,23 +483,23 @@ 2.1.3 6.4.0 5.0.0 - 3.1.8 + 3.1.10 4.13.2 - 2.16.2 - 2.16.2 - 1.5.8 - 4.8.176 + 2.18.2 + 2.18.2 + 1.5.16 + 4.8.179 32.1.3-jre - 1.10.14 + 1.10.15 3.17.0 - 2.17.0 + 2.18.0 2.0.9 9.4.56.v20240826g 7.9.0 2.28.2 4.5.1 4.5.14 - 1.16.0 + 1.17.2 2.22.2 3.2.1 @@ -513,6 +513,6 @@ https://oss.sonatype.org/content/repositories/snapshots/ 0.5.0 3.9.9 - 1.26.1 + 1.27.1 diff --git a/pom.xml b/pom.xml index e59638c8ff..a50457bb58 100644 --- a/pom.xml +++ b/pom.xml @@ -631,14 +631,14 @@ org.codehaus.groovy groovy - 3.0.19 + 3.0.23 test 8 - 2.2.3 + 2.2.4 2.13.0 2.3 2.1.6 @@ -646,23 +646,23 @@ 1.2.2 6.4.0 4.0.4 - 2.41 + 2.46 4.13.2 - 2.16.2 - 2.16.2 - 1.5.8 - 4.8.176 + 2.18.2 + 2.18.2 + 1.5.16 + 4.8.179 32.1.3-jre - 1.10.14 + 1.10.15 3.17.0 - 2.17.0 + 2.18.0 2.0.9 9.4.56.v20240826 - 7.8.0 + 7.10.2 2.28.2 4.5.1 4.5.14 - 1.16.0 + 1.17.2 3.5.0 3.2.1