Commit 0692e3b8 authored by Eric Myhre's avatar Eric Myhre

Merge branch 'schema-fixups'

parents 853e4a7c 54ac969f
......@@ -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
......@@ -10,35 +10,35 @@
"kind": "struct",
"fields": {
"fooField": {
"valueType": {
"type": "map",
"type": {
"kind": "map",
"keyType": "String",
"valueType": "String"
},
"optional": true
},
"barField": {
"valueType": {
"type": "map",
"type": {
"kind": "map",
"keyType": "String",
"valueType": "String"
},
"nullable": true
},
"bazField": {
"valueType": {
"type": "map",
"type": {
"kind": "map",
"keyType": "String",
"valueType": "String",
"valueNullable": true
}
},
"wozField": {
"valueType": {
"type": "map",
"type": {
"kind": "map",
"keyType": "String",
"valueType": {
"type": "list",
"kind": "list",
"valueType": "String",
"valueNullable": true
}
......
......@@ -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": {
......
Markdown is supported
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