Skip to content

Instantly share code, notes, and snippets.

@netogallo
Created April 28, 2015 08:46
Show Gist options
  • Select an option

  • Save netogallo/10b2ed6295657cabc8e3 to your computer and use it in GitHub Desktop.

Select an option

Save netogallo/10b2ed6295657cabc8e3 to your computer and use it in GitHub Desktop.
$Ref
Task = {type: "object", properties: {name: {type: "string"}}}
Duty = {type: "object", properties: {task: {$ref: "Task"}}}
es equivalente a:
Duty = {type: "object" ,properties: {task: {type: "object", properties: {name: {type: "string"}}}}}
Osea $ref es como hacer abstracion y nombrar la variable "Task" y es referentially transparent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment