Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ld
go-ld-prime
Commits
0692e3b8
Commit
0692e3b8
authored
Jun 25, 2019
by
Eric Myhre
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'schema-fixups'
parents
853e4a7c
54ac969f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
13 deletions
+40
-13
typed/declaration/examples.ipldsch
typed/declaration/examples.ipldsch
+2
-4
typed/declaration/examples.ipldsch.json
typed/declaration/examples.ipldsch.json
+9
-9
typed/declaration/schema-schema.ipldsch.json
typed/declaration/schema-schema.ipldsch.json
+29
-0
No files found.
typed/declaration/examples.ipldsch
View file @
0692e3b8
...
...
@@ -2,10 +2,8 @@
type ExampleWithNullable map {String : nullable String}
type ExampleWithAnonDefns struct {
fooField optional {String:String}
fooField optional {String:String}
(alias "foo_field")
barField nullable {String:String}
bazField {String : nullable String}
wozField {String:[nullable String]}
} representation map (
fooField: alias="foo_field"
)
} representation map
typed/declaration/examples.ipldsch.json
View file @
0692e3b8
...
...
@@ -10,35 +10,35 @@
"kind"
:
"struct"
,
"fields"
:
{
"fooField"
:
{
"
valueT
ype"
:
{
"
type
"
:
"map"
,
"
t
ype"
:
{
"
kind
"
:
"map"
,
"keyType"
:
"String"
,
"valueType"
:
"String"
},
"optional"
:
true
},
"barField"
:
{
"
valueT
ype"
:
{
"
type
"
:
"map"
,
"
t
ype"
:
{
"
kind
"
:
"map"
,
"keyType"
:
"String"
,
"valueType"
:
"String"
},
"nullable"
:
true
},
"bazField"
:
{
"
valueT
ype"
:
{
"
type
"
:
"map"
,
"
t
ype"
:
{
"
kind
"
:
"map"
,
"keyType"
:
"String"
,
"valueType"
:
"String"
,
"valueNullable"
:
true
}
},
"wozField"
:
{
"
valueT
ype"
:
{
"
type
"
:
"map"
,
"
t
ype"
:
{
"
kind
"
:
"map"
,
"keyType"
:
"String"
,
"valueType"
:
{
"
type
"
:
"list"
,
"
kind
"
:
"list"
,
"valueType"
:
"String"
,
"valueNullable"
:
true
}
...
...
typed/declaration/schema-schema.ipldsch.json
View file @
0692e3b8
...
...
@@ -37,6 +37,22 @@
}
}
},
"TypeKind"
:
{
"kind"
:
"enum"
,
"members"
:
{
"bool"
:
null
,
"string"
:
null
,
"bytes"
:
null
,
"int"
:
null
,
"float"
:
null
,
"map"
:
null
,
"list"
:
null
,
"link"
:
null
,
"union"
:
null
,
"struct"
:
null
,
"enum"
:
null
}
},
"RepresentationKind"
:
{
"kind"
:
"enum"
,
"members"
:
{
...
...
@@ -128,6 +144,13 @@
}
}
},
"TypeLink"
:
{
"kind"
:
"struct"
,
"fields"
:
{},
"representation"
:
{
"map"
:
{}
}
},
"TypeUnion"
:
{
"kind"
:
"struct"
,
"fields"
:
{
...
...
@@ -176,6 +199,9 @@
"valueType"
:
"TypeName"
}
}
},
"representation"
:
{
"map"
:
{}
}
},
"UnionRepresentation_Inline"
:
{
...
...
@@ -191,6 +217,9 @@
"valueType"
:
"TypeName"
}
}
},
"representation"
:
{
"map"
:
{}
}
},
"TypeStruct"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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