Skip to content

Commit c22643c

Browse files
committed
#1 Added internal identifier to the list of reserved words
1 parent 2174ccc commit c22643c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftyJSONAccelerator/SJModelGenerator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ public class ModelGenerator {
527527
*/
528528
internal func replaceInternalKeywordsForVariableName(currentName: String) -> String {
529529

530-
let currentReservedName = ["id":"internalIdentifier","description":"descriptionValue"]
530+
let currentReservedName = ["id":"internalIdentifier","description":"descriptionValue","_id":"internalIdentifier"]
531531
for (key, value) in currentReservedName {
532532
if key == currentName {
533533
return value

0 commit comments

Comments
 (0)