Skip to content

Instantly share code, notes, and snippets.

@ehlyzov
Created March 14, 2015 09:34
Show Gist options
  • Select an option

  • Save ehlyzov/1f70c3d0fd60015a868f to your computer and use it in GitHub Desktop.

Select an option

Save ehlyzov/1f70c3d0fd60015a868f to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://rating.vc/unijson_v1",
"type": "array",
"items": [
{
"id": "http://rating.vc/unijson_v1/0",
"type": "object",
"properties": {
"company": {
"id": "http://rating.vc/unijson_v1/0/company",
"type": "object",
"properties": {
"uuid": {
"id": "http://rating.vc/unijson_v1/0/company/uuid",
"type": "string"
}
},
"required": [
"uuid"
]
}
},
"required": [
"company"
]
},
{
"id": "http://rating.vc/unijson_v1/1",
"type": "object",
"properties": {
"person": {
"id": "http://rating.vc/unijson_v1/1/person",
"type": "object",
"properties": {
"uuid": {
"id": "http://rating.vc/unijson_v1/1/person/uuid",
"type": "string"
}
}
}
}
},
{
"id": "http://rating.vc/unijson_v1/2",
"type": "object",
"properties": {
"role": {
"id": "http://rating.vc/unijson_v1/2/role",
"type": "object",
"properties": {
"id": {
"id": "http://rating.vc/unijson_v1/2/role/id",
"type": "string"
},
"display_name": {
"id": "http://rating.vc/unijson_v1/2/role/display_name",
"type": "string"
}
}
}
}
},
{
"id": "http://rating.vc/unijson_v1/3",
"type": "object",
"properties": {
"association": {
"id": "http://rating.vc/unijson_v1/3/association",
"type": "object",
"properties": {
"id": {
"id": "http://rating.vc/unijson_v1/3/association/id",
"type": "string"
}
}
}
}
},
{
"id": "http://rating.vc/unijson_v1/4",
"type": "object",
"properties": {
"associated_person_company": {
"id": "http://rating.vc/unijson_v1/4/associated_person_company",
"type": "object",
"properties": {
"company_id": {
"id": "http://rating.vc/unijson_v1/4/associated_person_company/company_id",
"type": "string"
},
"person_id": {
"id": "http://rating.vc/unijson_v1/4/associated_person_company/person_id",
"type": "string"
},
"association_id": {
"id": "http://rating.vc/unijson_v1/4/associated_person_company/association_id",
"type": "string"
}
}
}
}
}
],
"required": [
"0",
"1",
"2",
"3",
"4"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment