Generate enums from source code
@provokateurin is already working on this.
Since Feb 28, 2024.
Assessment
This issue has not been assessed yet.
Description
Our helpers currently contain a few enums that are not included in the OpenAPI specs. They are a one to one mapping to the enums defined in the PHP source code, so we should be able to generate them automatically in order to ensure they are always up-to-date:
https://github.com/nextcloud/server/blob/master/lib/public/Share/IShare.php
https://github.com/nextcloud/news/blob/master/lib/Db/ListType.php
https://github.com/nextcloud/spreed/blob/main/lib/Room.php
https://github.com/nextcloud/spreed/blob/main/lib/Chat/ChatManager.php
https://github.com/nextcloud/spreed/blob/main/lib/Model/Attendee.php
https://github.com/nextcloud/spreed/blob/main/lib/Participant.php
This will also make it much easier in the future to add new enums if needed.
- Dominant language
- Dart
- Stars
- 178
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud/neon
-
tools
-
bug package: talk_app
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
refactoring
Difficulty 3/5 1-2 days Newbie friendliness 20/100
-
feature good first issue openapi package: nextcloud
Difficulty 4/5 3-5 days Newbie friendliness 20/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bus
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100