---
title: "schema_mismatch: what it means and how to fix it · Hypamoon"
description: "HTTP 422. The document does not match the JSON Schema of its collection.email and what is expected."
url: https://hypamoon.com/docs/errors/schema_mismatch
---

**Start for free.** [Sign up](https://app.hypamoon.com/?mode=signup&utm_source=docs&utm_campaign=banner) without a card and connect your chat, or create a test key for the API. Going live with something real asks for a quick check of your company first.

[Errors](https://hypamoon.com/docs/errors)

# schema\_mismatch

**Status**\
422

**Type**\
`https://hypamoon.com/docs/errors/schema_mismatch`

The document does not match the JSON Schema of its collection. `errors` names every field that is wrong, with a path like `data.email` and what is expected. Fix the data, or change the schema with `PATCH /api/v1/collections/{id}` (send `"schema": null` to remove it). From a form, `form.js` shows the first error next to the button. A schema that uses a keyword we do not check (like `oneOf`) is refused when you save it, with `validation_failed`.

Hypamoon is the infrastructure your chat or agent builds on for a business. Hypamoon API, version 1.[hypamoon.com](https://hypamoon.com/)
