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

feat: Enum Whitelist #674

Merged

Conversation

2002Bishwajeet
Copy link
Contributor

What does this PR do?

Generates enum for the given whitelist

Test Plan

N/A

Related PRs and Issues

Part of #426

Have you read the Contributing Guidelines on issues?

yess

@2002Bishwajeet 2002Bishwajeet marked this pull request as draft June 19, 2023 12:30
@2002Bishwajeet 2002Bishwajeet marked this pull request as ready for review July 12, 2023 11:42
src/SDK/Language.php Outdated Show resolved Hide resolved
src/SDK/SDK.php Show resolved Hide resolved
src/Spec/Swagger2.php Outdated Show resolved Hide resolved
templates/dart/lib/enums.dart.twig Outdated Show resolved Hide resolved
src/SDK/SDK.php Outdated Show resolved Hide resolved
templates/dart/lib/enums.dart.twig Outdated Show resolved Hide resolved
Copy link
Contributor Author

@2002Bishwajeet 2002Bishwajeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good just one minor change

src/SDK/Language/DotNet.php Outdated Show resolved Hide resolved
@2002Bishwajeet 2002Bishwajeet requested a review from abnegate July 26, 2023 05:49
@abnegate
Copy link
Contributor

@2002Bishwajeet We still need to change the service function parameters types to the enum type where applicable

E.g. Here the provider param should be typed Provider instead of string

@lohanidamodar lohanidamodar changed the base branch from master to 1.4.x August 4, 2023 13:44
Copy link
Member

@adityaoberai adityaoberai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@2002Bishwajeet add a couple of comments

templates/dotnet/src/Appwrite/Enums/Enums.cs.twig Outdated Show resolved Hide resolved
templates/dotnet/src/Appwrite/Enums/Enums.cs.twig Outdated Show resolved Hide resolved
Copy link
Member

@adityaoberai adityaoberai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@2002Bishwajeet one more comment

templates/dotnet/src/Appwrite/Enums/Enums.cs.twig Outdated Show resolved Hide resolved
@abnegate abnegate changed the base branch from 1.4.x to feat-whitelist-enums August 15, 2023 18:50
@abnegate abnegate merged commit 8004657 into appwrite:feat-whitelist-enums Aug 15, 2023
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.

7 participants