Skip to content

Commit

Permalink
Update validation message for uniqueItems (#1639)
Browse files Browse the repository at this point in the history
  • Loading branch information
srchase authored Feb 27, 2023
1 parent ef11627 commit eb027ff
Showing 1 changed file with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/blobList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/blobList' failed to satisfy constraint: Member must have unique values", "path": "/blobList"}]}"""
{ "message" : "1 validation error detected. Value at '/blobList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/blobList' failed to satisfy constraint: Member must have unique values", "path": "/blobList"}]}"""
}
}
}
Expand Down Expand Up @@ -83,8 +83,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/booleanList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/booleanList' failed to satisfy constraint: Member must have unique values", "path": "/booleanList"}]}"""
{ "message" : "1 validation error detected. Value at '/booleanList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/booleanList' failed to satisfy constraint: Member must have unique values", "path": "/booleanList"}]}"""
}
}
},
Expand Down Expand Up @@ -117,8 +117,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/stringList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/stringList' failed to satisfy constraint: Member must have unique values", "path": "/stringList"}]}"""
{ "message" : "1 validation error detected. Value at '/stringList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/stringList' failed to satisfy constraint: Member must have unique values", "path": "/stringList"}]}"""
}
}
}
Expand Down Expand Up @@ -147,8 +147,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/byteList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/byteList' failed to satisfy constraint: Member must have unique values", "path": "/byteList"}]}"""
{ "message" : "1 validation error detected. Value at '/byteList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/byteList' failed to satisfy constraint: Member must have unique values", "path": "/byteList"}]}"""
}
}
}
Expand Down Expand Up @@ -177,8 +177,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/shortList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/shortList' failed to satisfy constraint: Member must have unique values", "path": "/shortList"}]}"""
{ "message" : "1 validation error detected. Value at '/shortList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/shortList' failed to satisfy constraint: Member must have unique values", "path": "/shortList"}]}"""
}
}
}
Expand Down Expand Up @@ -207,8 +207,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/integerList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/integerList' failed to satisfy constraint: Member must have unique values", "path": "/integerList"}]}"""
{ "message" : "1 validation error detected. Value at '/integerList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/integerList' failed to satisfy constraint: Member must have unique values", "path": "/integerList"}]}"""
}
}
}
Expand Down Expand Up @@ -237,8 +237,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/longList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/longList' failed to satisfy constraint: Member must have unique values", "path": "/longList"}]}"""
{ "message" : "1 validation error detected. Value at '/longList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/longList' failed to satisfy constraint: Member must have unique values", "path": "/longList"}]}"""
}
}
}
Expand Down Expand Up @@ -267,8 +267,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/timestampList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/timestampList' failed to satisfy constraint: Member must have unique values", "path": "/timestampList"}]}"""
{ "message" : "1 validation error detected. Value at '/timestampList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/timestampList' failed to satisfy constraint: Member must have unique values", "path": "/timestampList"}]}"""
}
}
}
Expand Down Expand Up @@ -297,8 +297,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/dateTimeList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/dateTimeList' failed to satisfy constraint: Member must have unique values", "path": "/dateTimeList"}]}"""
{ "message" : "1 validation error detected. Value at '/dateTimeList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/dateTimeList' failed to satisfy constraint: Member must have unique values", "path": "/dateTimeList"}]}"""
}
}
}
Expand Down Expand Up @@ -327,8 +327,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/httpDateList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/httpDateList' failed to satisfy constraint: Member must have unique values", "path": "/httpDateList"}]}"""
{ "message" : "1 validation error detected. Value at '/httpDateList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/httpDateList' failed to satisfy constraint: Member must have unique values", "path": "/httpDateList"}]}"""
}
}
},
Expand Down Expand Up @@ -360,8 +360,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/enumList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/enumList' failed to satisfy constraint: Member must have unique values", "path": "/enumList"}]}"""
{ "message" : "1 validation error detected. Value at '/enumList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/enumList' failed to satisfy constraint: Member must have unique values", "path": "/enumList"}]}"""
}
}
}
Expand Down Expand Up @@ -390,8 +390,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/intEnumList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/intEnumList' failed to satisfy constraint: Member must have unique values", "path": "/intEnumList"}]}"""
{ "message" : "1 validation error detected. Value at '/intEnumList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/intEnumList' failed to satisfy constraint: Member must have unique values", "path": "/intEnumList"}]}"""
}
}
}
Expand Down Expand Up @@ -420,8 +420,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/listList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/listList' failed to satisfy constraint: Member must have unique values", "path": "/listList"}]}"""
{ "message" : "1 validation error detected. Value at '/listList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/listList' failed to satisfy constraint: Member must have unique values", "path": "/listList"}]}"""
}
}
}
Expand Down Expand Up @@ -450,8 +450,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/structureList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/structureList' failed to satisfy constraint: Member must have unique values", "path": "/structureList"}]}"""
{ "message" : "1 validation error detected. Value at '/structureList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/structureList' failed to satisfy constraint: Member must have unique values", "path": "/structureList"}]}"""
}
}
}
Expand Down Expand Up @@ -480,8 +480,8 @@ apply MalformedUniqueItems @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value with repeated values at '/unionList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value with repeated values at '/unionList' failed to satisfy constraint: Member must have unique values", "path": "/unionList"}]}"""
{ "message" : "1 validation error detected. Value at '/unionList' failed to satisfy constraint: Member must have unique values",
"fieldList" : [{"message": "Value at '/unionList' failed to satisfy constraint: Member must have unique values", "path": "/unionList"}]}"""
}
}
},
Expand Down

0 comments on commit eb027ff

Please sign in to comment.