Duolith docs

Errors E0500 to E0599

E0516 API description that cannot be read

Message file is not an OpenAPI description Duolith can read

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 api generate, and every build, reads api/.openapi.yaml and api/.openapi.json into a typed client (decision 0104). The file must be OpenAPI 3.0 or 3.1, in YAML or JSON, with paths.

How to fix it

Check the file is valid YAML or JSON with openapi and paths at its top level.

In a terminal

duolith explain E0516

Mentioned in