forked from appwrite/sdk-generator
-
Notifications
You must be signed in to change notification settings - Fork 1
Dev #14
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
Open
Fellmonkey
wants to merge
446
commits into
master
Choose a base branch
from
dev
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Dev #14
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install the dependencies so that the full analysis options are used when formatting.
…tter-pub-dev-score chore: ensure the full analysis options are used when formatting
feat: add `DeprecationWarning` decorator support Python language
At the moment, if a cookie isn't set, only the local storage cookie fallback is used for realtime authentication. This means sessions using client.setSession() will be unauthenticated when using realtime. This PR makes realtime use this.config.session (which is set with client.setSession()) if it exists.
Fixed an issue where array deserialization in Model.cs.twig failed when System.Text.Json creates Object[] instead of List<T>. Added a new ToList<T> extension method that properly handles JsonElement, Object[], List<T>, and IEnumerable<T> types, ensuring robust array deserialization across all scenarios.
Updated DotNet.php to return the element type instead of List<T> wrapper, and simplified Model.cs.twig to use typeName directly with the ToList<T> extension method.
Co-authored-by: Copilot <[email protected]>
Introduces a ToEnumerable extension method to unify array and enumerable conversions in generated .NET code. Updates code generation logic to use ToEnumerable for array properties, simplifying and improving type safety. Also adds necessary using statement for Extensions in generated model files.
Introduces comprehensive test templates for the .NET SDK, including unit tests for client, models, enums, converters, exceptions, and utility classes. Updates the DotNet language generator to support test file generation and adds new Twig filters and functions to facilitate test code creation.
Introduces a 'Run Tests' step in the sdk-build-validation workflow for multiple SDKs. This step runs the appropriate test command for each SDK and handles cases where no tests are available.
fix: some login issues in cli
Update InputFileTests to account for platform-specific filename handling by checking the OS and adjusting the expected filename accordingly.
Updated IDTest to assert the length of generated IDs. Refactored QueryTest to decode JSON output and assert on individual fields instead of string comparison, improving test robustness. Enhanced ServiceTest to automatically import and use enum types for parameters, ensuring correct usage in service method calls.
Updated parameter handling in PHP templates to cast enum parameters to string when building API paths and parameters. Adjusted ServiceTest template to improve test data initialization for location and webAuth method types.
Updated parameter handling in PHP templates to cast enum parameters to string when building API paths and parameters. Adjusted ServiceTest template to improve test data initialization for location and webAuth method types.
Updated parameter handling in PHP templates to cast enum parameters to string when building API paths and parameters. Adjusted ServiceTest template to improve test data initialization for location and webAuth method types.
Updated PHP templates to cast enum parameters to string when building API params and paths. Also improved test generation logic for array return types and adjusted request handling for 'location' and 'webAuth' method types.
Updated PHP templates to cast enum parameters to string when building API params and paths. Also improved test generation logic for array return types and adjusted request handling for 'location' and 'webAuth' method types.
Enhances the test template to handle methods returning arrays by initializing $data as an empty array. Also adjusts the mock call argument for webAuth methods to improve test accuracy.
Extended conditional logic in API request and service test templates to handle both 'webAuth' and 'location' method types. This ensures correct parameter passing and mocking for methods returning arrays or requiring location handling.
This reverts commit 6966815.
Replaces reflection-based service initialization in AppwriteManager with direct instantiation for better performance and AOT compatibility. Adds thread safety to CookieContainer with locking, improves cookie loading/saving, and clarifies platform-specific behavior. Enhances Realtime to support client/session updates and controlled reconnect logic. Minor fixes include exception type consistency and improved debug messages in OAuth and other templates. Adds Operator.cs to Unity SDK file list.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.