Skip to content

Commit dbe85df

Browse files
authored
Quote memento keys
Technically this is a breaking change since any people who have used this in JavaScript land or in an API would now have different key casing, but I think it's the right move for the future.
1 parent 8ac30a3 commit dbe85df

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

models/result/ValidationError.cfc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ component accessors="true" {
131131
*/
132132
struct function getMemento(){
133133
return {
134-
message : message,
135-
field : field,
136-
rejectedValue : rejectedValue,
137-
validationType : validationType,
138-
validationData : validationData,
139-
errorMetadata : errorMetadata
134+
"message" : message,
135+
"field" : field,
136+
"rejectedValue" : rejectedValue,
137+
"validationType" : validationType,
138+
"validationData" : validationData,
139+
"errorMetadata" : errorMetadata
140140
};
141141
}
142142

0 commit comments

Comments
 (0)