Fern Definition

Imports

Imports allow you to reference types and errors from other files

1
2
types:
  Person: ...
1
2
3
4
5
6
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).