Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
test-it
Pydantic Schema Registry
Commits
36cddddd
Commit
36cddddd
authored
Dec 01, 2020
by
ozzeh
Browse files
Export _ReflectedModel as BaseEvent
parent
12536f6e
Changes
3
Hide whitespace changes
Inline
Side-by-side
schema_registry/__init__.py
View file @
36cddddd
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
schema_registry/reflection.py
View file @
36cddddd
...
...
@@ -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
...
...
setup.py
0 → 100644
View file @
36cddddd
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment