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

Wrong type for case_template_id in /manage/cases/add #35

Open
b401 opened this issue Dec 9, 2024 · 0 comments
Open

Wrong type for case_template_id in /manage/cases/add #35

b401 opened this issue Dec 9, 2024 · 0 comments

Comments

@b401
Copy link

b401 commented Dec 9, 2024

Hey there,
I'm currently writing a go library for iris and found that the documentation regarding the case_template_id for the /manage/cases/add endpoint expects a string and not an int.

Code in app/business/cases.py

An int has no len() method and throws on these calls resulting in a 400 error.

84        if case_template_id and len(case_template_id) > 0:
...
93        if case_template_id and len(case_template_id) > 0:

This seems more like something that needs to be changed in the code instead of the documentation but I have not dug deeper into the issue.

Documentation reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant