Skip to content

Instantly share code, notes, and snippets.

@cored

cored/output.rb Secret

Last active December 15, 2015 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cored/b084716e2a33659358fc to your computer and use it in GitHub Desktop.
Save cored/b084716e2a33659358fc to your computer and use it in GitHub Desktop.
{"profiles"=>
[{"id"=>"3a816bd4-b863-44de-a8f4-8f9e48c302e7",
"email"=>"user1@namely.com",
"first_name"=>"Admin",
"last_name"=>"Admin",
"user_status"=>"active",
"updated_at"=>1450190450,
"created_at"=>1450190450,
"preferred_name"=>nil,
"image"=>nil,
"full_name"=>"Admin Admin",
"job_title"=>
{"id"=>"0b20bfbb-f0db-400a-9dd5-9e96ad69b4ed", "title"=>"CEO"},
"links"=>
{"job_title"=>
{"id"=>"0b20bfbb-f0db-400a-9dd5-9e96ad69b4ed", "title"=>"CEO"},
"groups"=>[],
"teams"=>[]},
"resume"=>nil,
"ssn"=>"",
"gender"=>nil,
"marital_status"=>nil}],
"meta"=>{"count"=>1, "status"=>200},
"links"=>
{"profiles.job_title"=>{"type"=>"job_titles"},
"profiles.image"=>{"type"=>"files"},
"profiles.groups"=>{"type"=>"groups"},
"profiles.teams"=>{"type"=>"teams"}},
"linked"=>
{"job_titles"=>
[{"id"=>"0b20bfbb-f0db-400a-9dd5-9e96ad69b4ed",
"parent_id"=>"884ef9b8-6ce1-4cc4-85ab-3b2319a383c5",
"title"=>"CEO",
"links"=>{"job_tier"=>"884ef9b8-6ce1-4cc4-85ab-3b2319a383c5"}}],
"files"=>[],
"groups"=>[],
"teams"=>[]}}
{
"type": "object",
"required": [
"profiles",
"meta",
"links",
"linked"
],
"profiles": {
"type": [
{
"type": "object",
"required": [
"id",
"email",
"first_name",
"last_name",
"user_status",
"image",
"updated_at",
"created_at",
"preferred_name",
"full_name",
"job_title",
"links",
"resume",
"groups",
"teams"
],
"properties": {
"id": { "type": "string" },
"email": { "type": "string" },
"first_name": { "type": "string" },
"last_name": { "type": "string" },
"user_status": { "type": "string" },
"image": {
"type": "object",
"required": [
"id",
"filename",
"mime_type",
"original",
"thumbs"
],
"properties": {
"id": { "type": "string" },
"filename": { "type": "string" },
"mime_type": { "type": "string" },
"original": { "type": "string" },
"thumbs": {
"type": "object",
"required": [
"75x75",
"75x75c",
"150x150",
"150x150c",
"300x300",
"450x450",
"800x800"
],
"properties": {
"75x75": { "type": "string" },
"75x75c": { "type": "string" },
"150x150": { "type": "string" },
"150x150c": { "type": "string" },
"300x300": { "type": "string" },
"450x450": { "type": "string" },
"800x800": { "type": "string" }
}
}
}
},
"updated_at": { "type": "integer"},
"created_at": { "type": "integer"},
"preferred_name": { "type": "string" },
"full_name": { "type": "string" },
"job_title": {
"type": "object",
"required": [
"id",
"title"
],
"properties": {
"id": { "type": "string" },
"title": { "type": "string" }
}
},
"links": {
"type": "object",
"required": [
"job_title",
"groups",
"teams"
],
"properties": {
"job_title": {
"type": "object",
"required": [
"id",
"title"
],
"properties": {
"id": { "type": "string" },
"title": { "type": "string" }
},
"groups": { "type": "array" },
"teams": { "type": "array" }
}
}
},
"resume": { "type": "string" },
"ssn": { "type": "string" },
"gender": { "type": "string" },
"marital_status": { "type": "string" }
}
}
]
},
"meta": {
"type": "object",
"required": [
"count",
"status"
],
"properties": {
"count": { "type": "integer" },
"status": { "type": "integer" }
}
},
"links": {
"type": "object",
"required": [
"profiles.job_title",
"profiles.image",
"profiles.groups",
"profiles.teams"
],
"properties": {
"profiles.job_title": { "type": "job_titles" },
"profiles.image": { "type": "files" },
"profiles.groups": { "type": "groups" },
"profiles.teams": { "type": "teams" }
},
"linked": {
"type": "object",
"required": ["job_titles"],
"items": {
"type": [
{
"type": "object",
"required": [
"id",
"parent_id",
"title",
"links"
],
"properties": {
"id": { "type": "string" },
"parent_id": { "type": "string" },
"title": { "type": "string" },
"links": {
"type": "object",
"required": ["job_tier"],
"properties": {
"job_tier": { "type": "string" }
}
}
}
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment