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

[java jaxrs-jersey] Cookie params are never generated #259

Closed
ahmad-korbesa opened this issue Dec 12, 2018 · 2 comments · Fixed by #549
Closed

[java jaxrs-jersey] Cookie params are never generated #259

ahmad-korbesa opened this issue Dec 12, 2018 · 2 comments · Fixed by #549

Comments

@ahmad-korbesa
Copy link

If you defined an endpoint that takes a parameter from a cookie, this parameter is not generated.
Hence, both Generated ApiService and ApiServiceImpl are not compilable due to a syntax error in the generated method signature.
the @CookieParam annotation is also not generated.

Example:
.yaml

/Product:
get:
summary: get a product
operationId: getProduct
parameters:
- in: cookie
name: sessionid
schema:
type: string
- name: type
in: query
required: true
schema:
type: string
- name: name
in: query
required: true
schema:
type: string

Generated method signature in ProductAPIService:

public abstract Response getProduct( @NotNull String type, @NotNull String name, /*Missing Parameter Here*/ ,SecurityContext securityContext) throws NotFoundException;

I added the comment /Missing Parameter Here/ to highlight the error

@nataliaoliveira
Copy link
Contributor

This is also happening to Spring language.

@HugoMario
Copy link
Contributor

Hi, this has been solved with #549. if you still get the issue please let me know and i'll work on a fix asap.

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 a pull request may close this issue.

3 participants