Skip to content
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

Refactor dotnet generation #617

Conversation

pietrodicaprio
Copy link

What does this PR do?

Refactor/improve the Dotnet SDK generation:

  • Provide API Error Answer class
  • Use System.Text.Json instead of Newtonsoft.Json
  • Avoid dependency from Microsoft.CSharp
  • Build only netstandard2.0 [1]
  • Use C# type double for PHP type number
  • Use nullable types [2]

Test Plan

Without the change to use double type it's not possible to build the project since the PHP type number was not included in the switch case when getting the type.
The project now builds and makes use of nullable types for non-mandatory fields.

Related PRs and Issues

Currently available versions on NuGet are not updated/aligned with the latest versions of Appwrite. For example the User ID is now (I didn't check since when) mandatory for user creation but not required from the published SDK

Have you read the Contributing Guidelines on issues?

Yup, I did. I hope to comply to all the instructions by the end of the PR

[1] compatibility starting from .Net Framework 4.6.1 that is the minimun non-EOL version (https://learn.microsoft.com/en-us/lifecycle/products/microsoft-net-framework)
[2] requires C# 8.0, provided with .Net Core 3.0 installation

- Provide API Error Answer class
- Use System.Text.Json instead of Newtonsoft.Json
- Avoid dependency from Microsoft.CSharp
- Build only netstandard2.0
- Use C# type double for PHP type number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant