-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
"Team.units_map" field is an object, not an string array! #21307
Comments
That's a typo in comment and affects nothing, it could be fixed. |
It means that the values in the object are strings. |
Yes the typo is simple and fixable. I say respectfully, not with the thought of an accusation or problem, I wish there were a little more explanatory and understandable documentation. Of course, the gitea team is doing their best, I'm sure of that and I'm grateful. Also, thank you for your help and explanation. The correction will not be made immediately, but I am closing the issue as done. |
Thank you for your catch and suggestion. The The PR #21347 will fix the comment. |
Description
The problem experienced due to some uncertainties and deficiencies in the documentation is as follows.
The unit_map field in the Team model defined in Gitea is shown as an string, but the response returns as an object. There is also no model related to the units_map field. Also, as an example in the documentation description, text starts with a object sign '{' and ends with a array sign ']'.
Please see refer to the definition and example of the unit_map field in Team model introduction in documentation at this link.
Gitea Version
1.17.2 and (for doc try.gitea.io - 1.18.0+dev-478-g08609d439)
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
2.37.1
Operating System
Windows Server 2022
How are you running Gitea?
Gitea version 1.17.2 executable on Windows Server 2022.
Database
MySQL
The text was updated successfully, but these errors were encountered: