Defining your API
Imports
Imports allow you to reference types and errors from other files
person.yml
types:
Person: ...
family.yml
imports:
person: ./path/to/person.yml
types:
Family:
properties:
people: list<person.Person> # use an imported type
Note that you can only import files that exist in your Fern Definition (i.e. in
the same definition/
folder).