Duolith docs

Errors E0600 to E0699

E0613 OpenAPI file import cannot read

Message problem

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

duolith domains import reads OpenAPI files as data. It refuses a file over 4 MB before reading it, a file that is not YAML or JSON (or uses anchors and aliases), and a $ref that points at a URL, an absolute path, or a file it was not given, so importing can never fetch or read anything else. What it reads and cannot turn into a domain file is reported per operation, never guessed.

How to fix it

Give import every file the description refers to, as local YAML or JSON files.

In a terminal

duolith explain E0613

Mentioned in