Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not support validating fields with the format: email in JSON Schema. #1727

Open
7 tasks
cobolbaby opened this issue Apr 11, 2024 · 0 comments
Open
7 tasks

Comments

@cobolbaby
Copy link

cobolbaby commented Apr 11, 2024

Description

if self._are_references_provided:
named_schemas = _resolve_named_schema(self._schema, self._registry)
validate(instance=value, schema=self._parsed_schema,
resolver=RefResolver(self._parsed_schema.get('$id'),
self._parsed_schema,
store=named_schemas))
else:
validate(instance=value, schema=self._parsed_schema)

When validating certain special types, modifications to the 'validate' method are required, as shown below:

from jsonschema import validate, ValidationError, RefResolver, Draft202012Validator

validate(instance=value, schema=self._parsed_schema, format_checker=Draft202012Validator.FORMAT_CHECKER)

How to reproduce

Checklist

Please provide the following information:

  • confluent-kafka-python and librdkafka version (v2.3.0 and confluent_kafka.libversion()):
  • Apache Kafka broker version: 5.5.11
  • Client configuration: {'auto.register.schemas': False, 'subject.name.strategy': record_subject_name_strategy}
  • Operating system:
  • Provide client logs (with 'debug': '..' as necessary)
  • Provide broker log excerpts
  • Critical issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants