-
Notifications
You must be signed in to change notification settings - Fork 0
edge case fix for type references enums and unions enums #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
kflemin
commented
Jan 12, 2022
- Fixes EndUse enumerations not showing up on schema viewer #156
Pull Request Test Coverage Report for Build 1689781762
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good work tracking this all down! 💯
@@ -43,6 +44,7 @@ def __init__(self): | |||
self.simple_types = [] | |||
self.name = "" | |||
self.type = None | |||
self.type_elements = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
look like this is redundant (see Line #20)
# if a referenced element wasn't found, and it wasn't a gbxml element, fail here | ||
if found or type_ref.startswith('gbxml'): | ||
continue | ||
raise Exception("Couldn't find reference %s" % looking_for_type_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice exception!
self.type_definitions.append(named_element) | ||
# testing if this resolves the issue | ||
# self.type_references.append(named_element) | ||
if named_element.type.startswith("auc:"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which cases don't have auc:
? Just gbxml
.