From da32441666cbb8da11f31691b1a29dc698d82bdb Mon Sep 17 00:00:00 2001 From: "fabio.kfouri" Date: Wed, 22 May 2024 10:42:40 -0300 Subject: [PATCH] Implemented for RegisteredSchema the method __str__, to return the schema as str when the schema is parsed to str() --- src/confluent_kafka/schema_registry/schema_registry_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/confluent_kafka/schema_registry/schema_registry_client.py b/src/confluent_kafka/schema_registry/schema_registry_client.py index 06ca30d0e..e38e55c15 100644 --- a/src/confluent_kafka/schema_registry/schema_registry_client.py +++ b/src/confluent_kafka/schema_registry/schema_registry_client.py @@ -821,6 +821,8 @@ def __init__(self, schema_id, schema, subject, version): self.subject = subject self.version = version + def __str__(self) -> str: + return self.schema.schema_str class SchemaReference(object): """ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy