@@ -22,7 +22,7 @@ class ValidationMessageTest {
22
22
23
23
@Test
24
24
def testMessage_additionalItems_notAllowed () {
25
- var expected = " instance type (integer) does not match any allowed primitive type (allowed: [\ " array\ " ])"
25
+ var expected = ' instance type (integer) does not match any allowed primitive type (allowed: ["array"])'
26
26
// parameters should contain an array of object
27
27
val content = ' ' '
28
28
swagger: ' 2.0 '
@@ -43,7 +43,7 @@ class ValidationMessageTest {
43
43
44
44
@Test
45
45
def testMessage_typeNoMatch () {
46
- var expected = " instance type (integer) does not match any allowed primitive type (allowed: [\ " object\ " ])"
46
+ var expected = ' instance type (integer) does not match any allowed primitive type (allowed: ["object"])'
47
47
// responses should contain an object
48
48
val content = ' ' '
49
49
swagger: ' 2.0 '
@@ -61,7 +61,7 @@ class ValidationMessageTest {
61
61
62
62
@Test
63
63
def testMessage_notInEnum () {
64
- val expected = " instance value (\ " foo\ " ) not found in enum (possible values: [\ " http\" , \ " https\" , \ " ws\" , \ " wss\ " ])"
64
+ val expected = ' instance value ("foo") not found in enum (possible values: ["http", "https", "ws", "wss"])'
65
65
val content = ' ' '
66
66
swagger: ' 2.0 '
67
67
info:
@@ -83,7 +83,7 @@ class ValidationMessageTest {
83
83
84
84
@Test
85
85
def testMessage_oneOf_fail () {
86
- val expected = " instance failed to match exactly one schema (matched 0 out of 2)"
86
+ val expected = ' instance failed to match exactly one schema (matched 0 out of 2)'
87
87
val content = ' ' '
88
88
swagger: ' 2.0 '
89
89
info:
@@ -102,7 +102,7 @@ class ValidationMessageTest {
102
102
103
103
@Test
104
104
def testMessage_additionalProperties_notAllowed () {
105
- val expected = " object instance has properties which are not allowed by the schema: [\ " description\" ] "
105
+ val expected = ' object instance has properties which are not allowed by the schema: ["description"] '
106
106
// description should be 2 spaces forward
107
107
val content = ' ' '
108
108
swagger: ' 2.0 '
0 commit comments