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

[Bug]: IllegalArgumentException with Custom Http Annotation #274

Closed
Foso opened this issue May 7, 2023 · 0 comments · Fixed by #275
Closed

[Bug]: IllegalArgumentException with Custom Http Annotation #274

Foso opened this issue May 7, 2023 · 0 comments · Fixed by #275
Assignees
Labels
bug Something isn't working

Comments

@Foso
Copy link
Owner

Foso commented May 7, 2023

Ktorfit version

1.2.0

What happened and how can we reproduce this issue?

'''kotlin
@http("example")
fun getPersonCall(@path("id") personId: Int): Call
'''

  1. Use HTTP annotation with custom method value
  2. Build app
  3. KSP throws compiler error " java.lang.IllegalArgumentException: No enum constant de.jensklingenberg.ktorfit.model.annotations.HttpMethod.example"

What did you expect to happen?

Set the custom value to Ktor

Is there anything else we need to know about?

No response

@Foso Foso added the bug Something isn't working label May 7, 2023
@Foso Foso self-assigned this May 7, 2023
Foso added a commit that referenced this issue May 7, 2023
Foso added a commit that referenced this issue May 7, 2023
@Foso Foso linked a pull request May 7, 2023 that will close this issue
2 tasks
Foso added a commit that referenced this issue May 7, 2023
Foso added a commit that referenced this issue May 7, 2023
@Foso Foso closed this as completed in #275 May 7, 2023
Foso added a commit that referenced this issue May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant