-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
…ed quotes in validation messages
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ class ValidationMessageTest { | |
|
||
@Test | ||
def testMessage_additionalItems_notAllowed() { | ||
var expected = "instance type (integer) does not match any allowed primitive type (allowed: [\"array\"])" | ||
var expected = 'instance type (integer) does not match any allowed primitive type (allowed: ["array"])' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
// parameters should contain an array of object | ||
val content = ''' | ||
swagger: '2.0' | ||
|
@@ -43,7 +43,7 @@ class ValidationMessageTest { | |
|
||
@Test | ||
def testMessage_typeNoMatch() { | ||
var expected = "instance type (integer) does not match any allowed primitive type (allowed: [\"object\"])" | ||
var expected = 'instance type (integer) does not match any allowed primitive type (allowed: ["object"])' | ||
This comment has been minimized.
Sorry, something went wrong.
tedepstein
Collaborator
|
||
// responses should contain an object | ||
val content = ''' | ||
swagger: '2.0' | ||
|
@@ -61,7 +61,7 @@ class ValidationMessageTest { | |
|
||
@Test | ||
def testMessage_notInEnum() { | ||
val expected = "instance value (\"foo\") not found in enum (possible values: [\"http\",\"https\",\"ws\",\"wss\"])" | ||
val expected = 'instance value ("foo") not found in enum (possible values: ["http","https","ws","wss"])' | ||
val content = ''' | ||
swagger: '2.0' | ||
info: | ||
|
@@ -83,7 +83,7 @@ class ValidationMessageTest { | |
|
||
@Test | ||
def testMessage_oneOf_fail() { | ||
val expected = "instance failed to match exactly one schema (matched 0 out of 2)" | ||
val expected = 'instance failed to match exactly one schema (matched 0 out of 2)' | ||
This comment has been minimized.
Sorry, something went wrong.
tedepstein
Collaborator
|
||
val content = ''' | ||
swagger: '2.0' | ||
info: | ||
|
@@ -102,7 +102,7 @@ class ValidationMessageTest { | |
|
||
@Test | ||
def testMessage_additionalProperties_notAllowed() { | ||
val expected = "object instance has properties which are not allowed by the schema: [\"description\"]" | ||
val expected = 'object instance has properties which are not allowed by the schema: ["description"]' | ||
This comment has been minimized.
Sorry, something went wrong.
tedepstein
Collaborator
|
||
// description should be 2 spaces forward | ||
val content = ''' | ||
swagger: '2.0' | ||
|
I think we should remove the word
primitive
, because this error message is not limited to cases where a primitive type is expected. In this particular case, it's an array.