Yson.Schema.reference
You're seeing just the macro
reference
, go back to Yson.Schema module for more information.
References a map or an interface by name.
The referenced map/interface should be defined outside the root/2
macro scope.
Example
map :any do
reference(:referenced)
end
map :referenced do
value(:name)
end