Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sergey Kozlovskiy
Schema
Commits
41240456
Commit
41240456
authored
4 years ago
by
Koen van der Veen
Browse files
Options
Download
Plain Diff
Merge branch 'dev' of gitlab.memri.io:memri/schema into username
parents
9c7cb28d
4c1109b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
EdgeAndPropertyHierarchy/type/type.json
+4
-0
EdgeAndPropertyHierarchy/type/type.json
TypeHierarchy/Item/Edge/Edge.json
+1
-1
TypeHierarchy/Item/Edge/Edge.json
tools/export_schema_ios_application.js
+3
-1
tools/export_schema_ios_application.js
with
8 additions
and
2 deletions
+8
-2
EdgeAndPropertyHierarchy/type/type.json
0 → 100644
+
4
-
0
View file @
41240456
{
"description"
:
"Used to describe edge types in front end, will be deprecated in the near future."
,
"type"
:
"string"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
TypeHierarchy/Item/Edge/Edge.json
+
1
-
1
View file @
41240456
{
"description"
:
"Edge is the Item that stores the specifics of an edge, used by front ends."
,
"properties"
:
[
"
itemT
ype"
,
"
t
ype"
,
"targetItemType"
,
"targetItemID"
,
"sourceItemType"
,
...
...
This diff is collapsed.
Click to expand it.
tools/export_schema_ios_application.js
+
3
-
1
View file @
41240456
...
...
@@ -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`
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets