{
"version": 1,
"errors": [],
"types": [
{
"type": "object",
"object": {
"typeName": {
"name": "BooleanExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "coin",
"type": {
"type": "primitive",
"primitive": "BOOLEAN"
}
}
]
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "IntegerExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "integer",
"type": {
"type": "primitive",
"primitive": "INTEGER"
}
}
]
}
},
{
"type": "alias",
"alias": {
"typeName": {
"name": "MapAliasExample",
"package": "com.palantir.product"
},
"alias": {
"type": "map",
"map": {
"keyType": {
"type": "primitive",
"primitive": "STRING"
},
"valueType": {
"type": "primitive",
"primitive": "ANY"
}
}
}
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "AnyExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "any",
"type": {
"type": "primitive",
"primitive": "ANY"
}
}
]
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "PrimitiveOptionalsExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "num",
"type": {
"type": "optional",
"optional": {
"itemType": {
"type": "primitive",
"primitive": "DOUBLE"
}
}
}
},
{
"fieldName": "bool",
"type": {
"type": "optional",
"optional": {
"itemType": {
"type": "primitive",
"primitive": "BOOLEAN"
}
}
}
},
{
"fieldName": "integer",
"type": {
"type": "optional",
"optional": {
"itemType": {
"type": "primitive",
"primitive": "INTEGER"
}
}
}
},
{
"fieldName": "safelong",
"type": {
"type": "optional",
"optional": {
"itemType": {
"type": "primitive",
"primitive": "SAFELONG"
}
}
}
},
{
"fieldName": "rid",
"type": {
"type": "optional",
"optional": {
"itemType": {
"type": "primitive",
"primitive": "RID"
}
}
}
},
{
"fieldName": "bearertoken",
"type": {
"type": "optional",
"optional": {
"itemType": {
"type": "primitive",
"primitive": "BEARERTOKEN"
}
}
}
},
{
"fieldName": "uuid",
"type": {
"type": "optional",
"optional": {
"itemType": {
"type": "primitive",
"primitive": "UUID"
}
}
}
}
]
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "EmptyObjectExample",
"package": "com.palantir.product"
},
"fields": []
}
},
{
"type": "alias",
"alias": {
"typeName": {
"name": "BooleanAliasExample",
"package": "com.palantir.product"
},
"alias": {
"type": "primitive",
"primitive": "BOOLEAN"
}
}
},
{
"type": "union",
"union": {
"typeName": {
"name": "SingleUnion",
"package": "com.palantir.product"
},
"union": [
{
"fieldName": "foo",
"type": {
"type": "primitive",
"primitive": "STRING"
}
}
]
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "SafeLongExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "safeLongValue",
"type": {
"type": "primitive",
"primitive": "SAFELONG"
}
}
]
}
},
{
"type": "alias",
"alias": {
"typeName": {
"name": "BearerTokenAliasExample",
"package": "com.palantir.product"
},
"alias": {
"type": "primitive",
"primitive": "BEARERTOKEN"
}
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "DateTimeExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "datetime",
"type": {
"type": "primitive",
"primitive": "DATETIME"
}
}
]
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "SetExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "items",
"type": {
"type": "set",
"set": {
"itemType": {
"type": "primitive",
"primitive": "STRING"
}
}
}
}
]
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "RidExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "ridValue",
"type": {
"type": "primitive",
"primitive": "RID"
}
}
]
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "EnumFieldExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "enum",
"type": {
"type": "reference",
"reference": {
"name": "EnumExample",
"package": "com.palantir.product"
}
}
}
]
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "ReservedKeyExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "package",
"type": {
"type": "primitive",
"primitive": "STRING"
}
},
{
"fieldName": "interface",
"type": {
"type": "primitive",
"primitive": "STRING"
}
},
{
"fieldName": "field-name-with-dashes",
"type": {
"type": "primitive",
"primitive": "STRING"
}
},
{
"fieldName": "primitve-field-name-with-dashes",
"type": {
"type": "primitive",
"primitive": "INTEGER"
}
},
{
"fieldName": "memoizedHashCode",
"type": {
"type": "primitive",
"primitive": "INTEGER"
}
}
]
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "CovariantListExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "items",
"type": {
"type": "list",
"list": {
"itemType": {
"type": "primitive",
"primitive": "ANY"
}
}
}
},
{
"fieldName": "externalItems",
"type": {
"type": "list",
"list": {
"itemType": {
"type": "external",
"external": {
"externalReference": {
"name": "ExampleExternalReference",
"package": "test.api"
},
"fallback": {
"type": "primitive",
"primitive": "STRING"
}
}
}
}
}
}
]
}
},
{
"type": "alias",
"alias": {
"typeName": {
"name": "ReferenceAliasExample",
"package": "com.palantir.product"
},
"alias": {
"type": "reference",
"reference": {
"name": "AnyExample",
"package": "com.palantir.product"
}
}
}
},
{
"type": "alias",
"alias": {
"typeName": {
"name": "DateTimeAliasExample",
"package": "com.palantir.product"
},
"alias": {
"type": "primitive",
"primitive": "DATETIME"
}
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "BinaryExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "binary",
"type": {
"type": "primitive",
"primitive": "BINARY"
}
}
]
}
},
{
"type": "alias",
"alias": {
"typeName": {
"name": "BinaryAliasExample",
"package": "com.palantir.product"
},
"alias": {
"type": "primitive",
"primitive": "BINARY"
}
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "AnyMapExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "items",
"type": {
"type": "map",
"map": {
"keyType": {
"type": "primitive",
"primitive": "STRING"
},
"valueType": {
"type": "primitive",
"primitive": "ANY"
}
}
}
}
]
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "ManyFieldExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "string",
"type": {
"type": "primitive",
"primitive": "STRING"
},
"docs": "docs for string field"
},
{
"fieldName": "integer",
"type": {
"type": "primitive",
"primitive": "INTEGER"
},
"docs": "docs for integer field"
},
{
"fieldName": "doubleValue",
"type": {
"type": "primitive",
"primitive": "DOUBLE"
},
"docs": "docs for doubleValue field"
},
{
"fieldName": "optionalItem",
"type": {
"type": "optional",
"optional": {
"itemType": {
"type": "primitive",
"primitive": "STRING"
}
}
},
"docs": "docs for optionalItem field"
},
{
"fieldName": "items",
"type": {
"type": "list",
"list": {
"itemType": {
"type": "primitive",
"primitive": "STRING"
}
}
},
"docs": "docs for items field"
},
{
"fieldName": "set",
"type": {
"type": "set",
"set": {
"itemType": {
"type": "primitive",
"primitive": "STRING"
}
}
},
"docs": "docs for set field"
},
{
"fieldName": "map",
"type": {
"type": "map",
"map": {
"keyType": {
"type": "primitive",
"primitive": "STRING"
},
"valueType": {
"type": "primitive",
"primitive": "STRING"
}
}
},
"docs": "docs for map field"
},
{
"fieldName": "alias",
"type": {
"type": "reference",
"reference": {
"name": "StringAliasExample",
"package": "com.palantir.product"
}
},
"docs": "docs for alias field"
}
]
}
},
{
"type": "alias",
"alias": {
"typeName": {
"name": "NestedStringAliasExample",
"package": "com.palantir.product"
},
"alias": {
"type": "reference",
"reference": {
"name": "StringAliasExample",
"package": "com.palantir.product"
}
}
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "AliasAsMapKeyExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "strings",
"type": {
"type": "map",
"map": {
"keyType": {
"type": "reference",
"reference": {
"name": "StringAliasExample",
"package": "com.palantir.product"
}
},
"valueType": {
"type": "reference",
"reference": {
"name": "ManyFieldExample",
"package": "com.palantir.product"
}
}
}
}
},
{
"fieldName": "rids",
"type": {
"type": "map",
"map": {
"keyType": {
"type": "reference",
"reference": {
"name": "RidAliasExample",
"package": "com.palantir.product"
}
},
"valueType": {
"type": "reference",
"reference": {
"name": "ManyFieldExample",
"package": "com.palantir.product"
}
}
}
}
},
{
"fieldName": "bearertokens",
"type": {
"type": "map",
"map": {
"keyType": {
"type": "reference",
"reference": {
"name": "BearerTokenAliasExample",
"package": "com.palantir.product"
}
},
"valueType": {
"type": "reference",
"reference": {
"name": "ManyFieldExample",
"package": "com.palantir.product"
}
}
}
}
},
{
"fieldName": "integers",
"type": {
"type": "map",
"map": {
"keyType": {
"type": "reference",
"reference": {
"name": "IntegerAliasExample",
"package": "com.palantir.product"
}
},
"valueType": {
"type": "reference",
"reference": {
"name": "ManyFieldExample",
"package": "com.palantir.product"
}
}
}
}
},
{
"fieldName": "safelongs",
"type": {
"type": "map",
"map": {
"keyType": {
"type": "reference",
"reference": {
"name": "SafeLongAliasExample",
"package": "com.palantir.product"
}
},
"valueType": {
"type": "reference",
"reference": {
"name": "ManyFieldExample",
"package": "com.palantir.product"
}
}
}
}
},
{
"fieldName": "datetimes",
"type": {
"type": "map",
"map": {
"keyType": {
"type": "reference",
"reference": {
"name": "DateTimeAliasExample",
"package": "com.palantir.product"
}
},
"valueType": {
"type": "reference",
"reference": {
"name": "ManyFieldExample",
"package": "com.palantir.product"
}
}
}
}
},
{
"fieldName": "uuids",
"type": {
"type": "map",
"map": {
"keyType": {
"type": "reference",
"reference": {
"name": "UuidAliasExample",
"package": "com.palantir.product"
}
},
"valueType": {
"type": "reference",
"reference": {
"name": "ManyFieldExample",
"package": "com.palantir.product"
}
}
}
}
}
]
}
},
{
"type": "union",
"union": {
"typeName": {
"name": "UnionTypeExample",
"package": "com.palantir.product"
},
"union": [
{
"fieldName": "stringExample",
"type": {
"type": "reference",
"reference": {
"name": "StringExample",
"package": "com.palantir.product"
}
},
"docs": "Docs for when UnionTypeExample is of type StringExample."
},
{
"fieldName": "set",
"type": {
"type": "set",
"set": {
"itemType": {
"type": "primitive",
"primitive": "STRING"
}
}
}
},
{
"fieldName": "thisFieldIsAnInteger",
"type": {
"type": "primitive",
"primitive": "INTEGER"
}
},
{
"fieldName": "alsoAnInteger",
"type": {
"type": "primitive",
"primitive": "INTEGER"
}
},
{
"fieldName": "if",
"type": {
"type": "primitive",
"primitive": "INTEGER"
}
},
{
"fieldName": "new",
"type": {
"type": "primitive",
"primitive": "INTEGER"
}
},
{
"fieldName": "interface",
"type": {
"type": "primitive",
"primitive": "INTEGER"
}
}
],
"docs": "A type which can either be a StringExample, a set of strings, or an integer."
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "BearerTokenExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "bearerTokenValue",
"type": {
"type": "primitive",
"primitive": "BEARERTOKEN"
}
}
]
}
},
{
"type": "alias",
"alias": {
"typeName": {
"name": "StringAliasExample",
"package": "com.palantir.product"
},
"alias": {
"type": "primitive",
"primitive": "STRING"
}
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "ListExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "items",
"type": {
"type": "list",
"list": {
"itemType": {
"type": "primitive",
"primitive": "STRING"
}
}
}
},
{
"fieldName": "primitiveItems",
"type": {
"type": "list",
"list": {
"itemType": {
"type": "primitive",
"primitive": "INTEGER"
}
}
}
},
{
"fieldName": "doubleItems",
"type": {
"type": "list",
"list": {
"itemType": {
"type": "primitive",
"primitive": "DOUBLE"
}
}
}
}
]
}
},
{
"type": "alias",
"alias": {
"typeName": {
"name": "RidAliasExample",
"package": "com.palantir.product"
},
"alias": {
"type": "primitive",
"primitive": "RID"
}
}
},
{
"type": "alias",
"alias": {
"typeName": {
"name": "IntegerAliasExample",
"package": "com.palantir.product"
},
"alias": {
"type": "primitive",
"primitive": "INTEGER"
}
}
},
{
"type": "alias",
"alias": {
"typeName": {
"name": "DoubleAliasExample",
"package": "com.palantir.product"
},
"alias": {
"type": "primitive",
"primitive": "DOUBLE"
}
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "CovariantOptionalExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "item",
"type": {
"type": "optional",
"optional": {
"itemType": {
"type": "primitive",
"primitive": "ANY"
}
}
}
}
]
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "MapExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "items",
"type": {
"type": "map",
"map": {
"keyType": {
"type": "primitive",
"primitive": "STRING"
},
"valueType": {
"type": "primitive",
"primitive": "STRING"
}
}
}
}
]
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "DoubleExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "doubleValue",
"type": {
"type": "primitive",
"primitive": "DOUBLE"
}
}
]
}
},
{
"type": "alias",
"alias": {
"typeName": {
"name": "SafeLongAliasExample",
"package": "com.palantir.product"
},
"alias": {
"type": "primitive",
"primitive": "SAFELONG"
}
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "OptionalExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "item",
"type": {
"type": "optional",
"optional": {
"itemType": {
"type": "primitive",
"primitive": "STRING"
}
}
}
}
]
}
},
{
"type": "enum",
"enum": {
"typeName": {
"name": "EnumExample",
"package": "com.palantir.product"
},
"values": [
{
"value": "ONE"
},
{
"value": "TWO"
}
],
"docs": "This enumerates the numbers 1:2.\n"
}
},
{
"type": "union",
"union": {
"typeName": {
"name": "Union",
"package": "com.palantir.product"
},
"union": [
{
"fieldName": "foo",
"type": {
"type": "primitive",
"primitive": "STRING"
}
},
{
"fieldName": "bar",
"type": {
"type": "primitive",
"primitive": "INTEGER"
}
}
]
}
},
{
"type": "alias",
"alias": {
"typeName": {
"name": "UuidAliasExample",
"package": "com.palantir.product"
},
"alias": {
"type": "primitive",
"primitive": "UUID"
}
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "StringExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "string",
"type": {
"type": "primitive",
"primitive": "STRING"
}
}
]
}
},
{
"type": "object",
"object": {
"typeName": {
"name": "UuidExample",
"package": "com.palantir.product"
},
"fields": [
{
"fieldName": "uuid",
"type": {
"type": "primitive",
"primitive": "UUID"
}
}
]
}
}
],
"services": []
}