Commit 41240456 authored by Koen van der Veen's avatar Koen van der Veen
Browse files

Merge branch 'dev' of gitlab.memri.io:memri/schema into username

parents 9c7cb28d 4c1109b6
Showing with 8 additions and 2 deletions
+8 -2
{
"description": "Used to describe edge types in front end, will be deprecated in the near future.",
"type": "string"
}
\ No newline at end of file
{
"description": "Edge is the Item that stores the specifics of an edge, used by front ends.",
"properties": [
"itemType",
"type",
"targetItemType",
"targetItemID",
"sourceItemType",
......
......@@ -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`;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment