Commit 36cddddd authored by ozzeh's avatar ozzeh
Browse files

Export _ReflectedModel as BaseEvent

parent 12536f6e
from .client import SchemaRegistry, Schema
from .reflection import SchemaReflector, reflect_event
from .reflection import SchemaReflector, reflect_event, BaseEvent
from .models import Event
from .errors import SchemaRegistryError, ModelNotRegisteredError
......@@ -30,6 +30,9 @@ class _ReflectedModel(BaseModel):
alias_generator = lambda x: "fields_" if x == "fields" else x
BaseEvent = _ReflectedModel
class SchemaReflector:
def __init__(self, schema, registry=None):
self.schema = schema
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment