Back to Withastro

Content entry data does not match schema.

src/content/docs/en/reference/errors/invalid-content-entry-data-error.mdx

latest590 B
Original Source

import DontEditWarning from '~/components/DontEditWarning.astro'

<DontEditWarning />

Example error message:

blogpost data does not match collection schema.

"title" is required.

"date" must be a valid date.

What went wrong?

A content entry does not match its collection schema. Make sure that all required fields are present, and that all fields are of the correct type. You can check against the collection schema in your src/content.config.* file. See the Content collections documentation for more information.