Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

unknown format "email" ignored in schema at path #387

Open
@cthorner

Description

Environment Information

  • OS [e.g. Mac, Arch, Windows 10]: Mac
  • Node Version [e.g. 8.2.1]: 22.11.0
  • NPM Version [e.g. 5.4.2]:10.9.0
  • C++ Toolchain [e.g. Visual Studio, llvm, g++]:
  • confluent-kafka-javascript version [e.g. 2.3.3]: 1.6.0

Steps to Reproduce
Schema:

{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://example.com/email-format-example",
 "type": "object",
 "properties": {
 "email": {
 "type": "string",
 "format": "email"
 }
 }
}
const payload = {
 email: "someone@example.com"
}
const topic = 'mytopic'
const id = 1234
const ser = new JsonSerializer(registry, SerdeType.VALUE, { useSchemaId: id, validate: true });
await ser.serialize(topic, payload)

confluent-kafka-javascript Configuration Settings

Additional context
Needs ajv-formats:

import Ajv2020 from "ajv/dist/2020"
import addFormats from "ajv-formats"
const ajv = new Ajv()
addFormats(ajv)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /