Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update validation message for uniqueItems #1639

Merged
merged 1 commit into from
Feb 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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