-
Notifications
You must be signed in to change notification settings - Fork 17
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
Why are parameters not strongly typed ? #13
Comments
The new Dart SDK with structured response models is now available: https://dev.to/appwrite/announcing-appwrite-dart-sdk-20-50a1 Strong typed DB filters will be introduced with the release of Appwrite 0.12 |
@orevial Thank you for your issue. We are aware of this. As our SDKs are generated using Swagger specs using our sdk-generator, there are certain limitations at the moment. But we are working to improve typing for Map and List param as well |
How is this going? I second this ticket. |
@orevial @TheMaverickProgrammer Most of the issues have already been resolved in the latest version of the SDK. If you still find some params missing proper type definition (except the |
Closing this issue as it should already be resolved. If you still have the issues feel free to reopen. |
👟 Reproduction steps
Not really a bug but I was wondering if there was a specific reason to not add strongly typing to all services parameters ?
Examples for
database
service :where
filters
list is not typed, or :where
data
, read and write are not typed either.Same goes for certain responses that simply return a
Response
or sometimes just an untypedFuture
.This makes the SDK really hard to use as we have to always refer to the documentation and hope that stuff we are looking for is defined there.
👍 Expected behavior
As a developer, I would expect following typing for examples above:
where
filters
list is not typed, or :👎 Actual Behavior
Many methods are not strongly typed as explained in introduction.
🎲 Appwrite version
Different version (specify in environment)
💻 Operating system
MacOS
🧱 Your Environment
Tested on AppWrite 0.11.0 with following Dart packages:
(similar problems for Dart or Flutter package).
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: