confluent-kafka-python
confluent-kafka-python copied to clipboard
Not support validating fields with the `format: email` in JSON Schema.
Description
https://github.com/confluentinc/confluent-kafka-python/blob/5a87879681d28375a55203c4839338b13b668046/src/confluent_kafka/schema_registry/json_schema.py#L272-L279
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.0andconfluent_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