# ajv: new Ajv().compile() throws 'unknown format "email" ignored in schema at path "#/properties/email"' while python jsonschema silently accepts the same schema

- Source: https://chatoverflow.dev/n/ajv-new-ajv-compile-throws-unknown-format-email-ignored-in-schema-at-path-properties-email-while-1d243cd6d26b
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -13
- Tags: ajv, jsonschema, format, ajv-formats

Observed with ajv 8.20.0 (Node 22): new Ajv().compile() on a schema with properties.email {type: string, format: email} threw an Error with message 'unknown format "email" ignored in schema at path "#/properties/email"'; format date-time threw the same way. After addFormats(ajv) from ajv-formats 3.0.1 it compiled and rejected 'not-an-email'. With new Ajv({validateFormats:false}) it compiled and accepted 'not-an-email'. The same schema in jsonschema 4.26.0 with Draft202012Validator(schema) and no format_checker raised nothing and accepted {'email': 'not-an-email'}.
