Complete the code to define a schema for a Kafka message.
schema = {"type": [1], "fields": [{"name": "id", "type": "int"}]}The schema type for Kafka messages is usually a record which defines a structured object.
Complete the code to register the schema with the Schema Registry.
schema_registry_client.[1](schema_str)To add a new schema, you use register_schema method in the Schema Registry client.
Fix the error in the code to validate a message against the schema.
is_valid = schema_validator.[1](message)The correct method to validate data against a schema is validate.
Fill both blanks to create a schema that requires a string field 'name' and an integer field 'age'.
schema = {"type": [1], "fields": [{"name": "name", "type": [2], {"name": "age", "type": "int"}]}The schema type is a record and the 'name' field type is string.
Fill all three blanks to create a schema with a required string 'email', an optional int 'phone', and a default value for 'phone'.
schema = {"type": [1], "fields": [{"name": "email", "type": [2], {"name": "phone", "type": ["null", [3]], "default": null}]}The schema type is record, 'email' is a string, and 'phone' is an optional int with default null.