diff --git a/EdgeAndPropertyHierarchy/type/type.json b/EdgeAndPropertyHierarchy/type/type.json new file mode 100644 index 0000000000000000000000000000000000000000..bc0f40a6ee64ec654144200633919ae05306f96a --- /dev/null +++ b/EdgeAndPropertyHierarchy/type/type.json @@ -0,0 +1,4 @@ +{ + "description": "Used to describe edge types in front end, will be deprecated in the near future.", + "type": "string" +} \ No newline at end of file diff --git a/TypeHierarchy/Item/Edge/Edge.json b/TypeHierarchy/Item/Edge/Edge.json index e66ae6dd2296d8a7bae3e72d5bddd53c30aae63b..395416bac4f82eff02c21482126c64545cf60a29 100644 --- a/TypeHierarchy/Item/Edge/Edge.json +++ b/TypeHierarchy/Item/Edge/Edge.json @@ -1,7 +1,7 @@ { "description": "Edge is the Item that stores the specifics of an edge, used by front ends.", "properties": [ - "itemType", + "type", "targetItemType", "targetItemID", "sourceItemType", diff --git a/tools/export_schema_ios_application.js b/tools/export_schema_ios_application.js index 0d495f97894236100b8014a6a11f9f8a4d12a111..b504093c4070de8efa6b43786b451c7a1a6e55d2 100644 --- a/tools/export_schema_ios_application.js +++ b/tools/export_schema_ios_application.js @@ -98,7 +98,9 @@ function getDataItemClasses() { case 'string': properties += ` @objc dynamic var ${field}:String? = nil\n`; if (field === 'targetItemType') { - propertiesDecoder += ` ${field} = try decoder.decodeIfPresent("itemType") ?? ${field}\n`; + propertiesDecoder += ` ${field} = try decoder.decodeIfPresent("targetType") ?? ${field}\n`; + } else if (field === 'type') { + propertiesDecoder += ` ${field} = try decoder.decodeIfPresent("_type") ?? ${field}\n`; } else if (field !== 'sourceItemType') { propertiesDecoder += ` ${field} = try decoder.decodeIfPresent("${field}") ?? ${field}\n`; }