Yson.Schema.interface

You're seeing just the macro interface, go back to Yson.Schema module for more information.
Link to this macro

interface(name, opts \\ [], list)

View Source (macro)

Defines a interface.

It contains virtual fields that will be automatically mapped on parent node as children. An interface field could be a value, a map, an interface or a reference.

Example

interface :address do
  value(:city)
end