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
Increase visibility to items in lib/src #94
Comments
Thanks for your contribution! :) |
Hi @alevinetx , thanks for your feedback :) I understand, but it's difficult from a development resource perspective to write a description of all model objects provided in this package in a README or similar document. Also, these model objects have the same structure as the official mastodon entities, and I feel we would be better off reading the official references that are already in place. The structure of the service in which the endpoints are implemented is also the same as the official mastodon, and mappings exist in the following sections :) |
Hello! I'm not suggesting adding manual documentation, but rather adding additional exports in lib/mastodon_api.dart |
Oh my bad, I was not aware that these objects are not publicly available! Would you be interested in a pull request for this Issue? :) |
Sure, let me see what I can do |
Co-authored-by: myConsciousness <contact@shinyakato.dev>
97: fix: fixed for the issue (#94) r=myConsciousness a=myConsciousness # 1. Description <!-- Provide a description of what this PR is doing. If you're modifying existing behavior, describe the existing behavior, how this PR is changing it, and what motivated the change. If this is a breaking change, specify explicitly which APIs have been changed. --> ## 1.1. Checklist <!-- Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (`[x]`). This will ensure a smooth and quick review process. --> - [x] The title of my PR starts with a [Conventional Commit] prefix (`fix:`, `feat:`, `docs:` etc). - [x] I have read the [Contributor Guide] and followed the process outlined for submitting PRs. - [x] I have updated/added tests for ALL new/updated/fixed functionality. - [x] I have updated/added relevant documentation in `docs` and added dartdoc comments with `///`. - [x] I have updated/added relevant examples in `examples`. ## 1.2. Breaking Change <!-- Does your PR require users to manually update their apps to accommodate your change? If the PR is a breaking change this should be indicated with suffix "!" (for example, `feat!:`, `fix!:`). See [Conventional Commit] for details. --> - [ ] Yes, this is a breaking change. - [x] No, this is _not_ a breaking change. ## 1.3. Related Issues <!-- Provide a list of issues related to this PR from the [issue database]. Indicate which of these issues are resolved or fixed by this PR, i.e. Fixes #xxxx* !--> <!-- Links --> [issue database]: https://github.com/mastodon-dart/mastodon-api/issues [contributor guide]: https://github.com/mastodon-dart/mastodon-api/blob/main/CONTRIBUTING.md [style guide]: https://github.com/mastodon-dart/mastodon-api/blob/main/STYLEGUIDE.md [conventional commit]: https://conventionalcommits.org Co-authored-by: alevinetx <adam.l.levine@gmail.com> Co-authored-by: myConsciousness <contact@shinyakato.dev>
mastodon_api: ^0.2.2
Example:
Future<MastodonResponse<List<Rule>>> server.v1.instance.lookupRules()
lookupRules()
is contained inInstanceV1Service
, which doesn't appear in the documentation.Rule
doesn't appear in the documentation.IDE cannot find
Rule
to understand its data type unless I explicitly importpackage:mastodon_api/src/service/entities/rule.dart
2. Why should this be improved
Beyond improving IDE interaction, this should help improve the generated documentation; there are currently missing items.
3. Any risks?
?
The text was updated successfully, but these errors were encountered: