openapi, api, and asyncapi frontmatter fields must each be a single string. If any page sets one of these fields to a list, a number, or another non-string value, Mintlify fails the deployment with this message:
Invalid "<field>" frontmatter at path. It names the page path and the type of value Mintlify received, such as received an array.
Common causes
- Listing several endpoints in one field, such as
openapi: [GET /users, POST /users]. - Writing the value as a YAML list on separate lines that start with
-. - Using a value that YAML parses as a number or boolean instead of a string.
Fix the frontmatter
Set the field to one endpoint string. Wrap the value in quotes so YAML always parses it as a string.Incorrect
Correct
openapi frontmatter format, see Document endpoints.