API 定义
导入和配置您的 API 规范
Fern 定义中的导入
导入允许您引用其他文件中的类型和错误。
1types:2 Person: ...
1imports:2 person: ./path/to/person.yml3types:4 Family:5 properties:6 people: list<person.Person> # use an imported type
请注意,您只能导入 Fern 定义中存在的文件(即,在同一个 definition/ 文件夹中)。
definition/