You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would be nice to get notified about this, maybe like this in build_classes:
for uri, klass in six.iteritems(builder.resolved):
title = getattr(klass, "__title__", None)
if title is not None:
transformed_title = name_transform(title)
if transformed_title in classes:
print("warning")
classes[transformed_title] = klass
elif not named_only:
transformed_name = name_transform(uri.split("/")[-1])
if transformed_name in classes:
print("warning")
classes[transformed_name] = klass
The text was updated successfully, but these errors were encountered:
Hi,
if, for example I have a schema that has a duplicated class name, whats the best way to handle this? Currently the class builder "fails" silenty.
E.g. I reference a schema from another schema that uses the same
title
v1/node/foo
.I use
build_classes(named_only=True)
.I would be nice to get notified about this, maybe like this in
build_classes
:The text was updated successfully, but these errors were encountered: