Skip to content
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

fix: add missing types from documentation to translate_documentation_types #238

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions parliament/statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,17 +257,17 @@ def translate_documentation_types(str):
So return "Number"
"""

if str in ["Arn", "ARN"]:
if str in ["Arn", "ARN", "ArrayOfARN"]:
return "Arn"
elif str in ["Bool", "Boolean"]:
elif str in ["Bool", "Boolean", "ArrayOfBool"]:
return "Bool"
elif str in ["Date"]:
return "Date"
elif str in ["Long", "Numeric"]:
return "Number"
elif str in ["String", "string", "ArrayOfString"]:
return "String"
elif str in ["Ip"]:
elif str in ["Ip", "IPAddress"]:
return "Ip"
else:
raise Exception("Unknown data format: {}".format(str))
Expand Down