               $0.properties!
             }
             .toDict {
-              ($0.value.typeInnerCode(), ($0.key, $0.value.codeClass()))
+              ($0.value.typeInnerCode() + ":" + $0.key, ($0.key, $0.value.codeClass(), $0.value.typeInnerCode()) )
             }
 
     let sortedKeys = keys.sorted {



  var keyCode: String {
    let keys: [String: (String, CodeClass)] =
        self.links
            .filter {
              $0.targetSchema?.title?.contains("data") != nil

    return sortedKeys.reduce("") {
      switch $1.value.1 {
      case .array:
        return $0 ++ "extension \($1.value.2): HasPluralJSONKeyEntity {" ++
               "  static let plural = \"\($1.value.0)\"" ++
               "}" + n
      default:
        return $0 ++ "extension \($1.value.2): HasSingularJSONKeyEntity {" ++
               "  static let singular = \"\($1.value.0)\"" ++
               "}" + n
      }

