Permalink
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (33 sloc) 694 Bytes
{
"type": "record",
// unique name of the schema
"name": "Photo",
"namespace": "com.linkedin.restli.example",
// (optional) documentation to schema users
"doc": "A photo for rest.li",
"fields": [
{
"name": "id",
"type": "long"
},
{
"name": "urn",
"type": "string"
},
{
"name": "title",
"type": "string"
},
// use type that is defined in another schema file
// types can be embedded in pdsc, but can only be referenced within its own file
{
"name": "format",
"type": "PhotoFormats"
},
{
"name": "exif",
"doc": "Exchangeable image file format",
"type": "EXIF"
}
]
}