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

Add support for Enum Query parameters #75

Closed
sashirestela opened this issue Aug 30, 2024 · 0 comments · Fixed by #76
Closed

Add support for Enum Query parameters #75

sashirestela opened this issue Aug 30, 2024 · 0 comments · Fixed by #76
Assignees
Labels
enhancement New feature or request

Comments

@sashirestela
Copy link
Owner

sashirestela commented Aug 30, 2024

For example, a function declared like this:

@GET("/someResource")
<ResponseType> someFunction(@Query("enumParameter") Status enumParameter);

enum Status {
    @JsonProperty("open")
    OPEN,

    @JsonProperty("in_progress")
    IN_PROGRESS,

    @JsonProperty("completed")
    COMPLETED;
}

What is invoqued with the following values:

var result = someFunction(Status.OPEN);

Its url should be resolved as:

/someResource?enumParameter=open
@sashirestela sashirestela added the enhancement New feature or request label Aug 30, 2024
@sashirestela sashirestela linked a pull request Aug 31, 2024 that will close this issue
@sashirestela sashirestela self-assigned this Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant