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
Describe the bug
The Issue schema doesn't have issue_name marked as optional, however Metron doesn't always return this field and it doesn't raise an exception.
To Reproduce
Make a call to result = session.issue(_id=39505)
Try and access the issue_name field: result.issue_name
An AttributeError is raised:
AttributeError: 'Issue' object has no attribute 'issue_name'
Expected behavior
It should either raise an exception or the field be Optional
Desktop (please complete the following information):
OS: Windows
Additional context
The text was updated successfully, but these errors were encountered:
Looking at this more closely, I don't think this is really a bug. It is raising an AttributeError for a field that doesn't exist. It would raise the same error if you accessed: result.foo_bar, which is correct.
Where this should be addressed most likely is in the documentation since the issue_name field is only used for list results, since the detail views contains the information need to create the issue name (series_nameand number fields).
Describe the bug
The Issue schema doesn't have issue_name marked as optional, however Metron doesn't always return this field and it doesn't raise an exception.
To Reproduce
result = session.issue(_id=39505)
result.issue_name
Expected behavior
It should either raise an exception or the field be Optional
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: