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][Java] Microprofile missing cookie param support leads to invalid code #20727

Closed
6 tasks done
Munken opened this issue Feb 25, 2025 · 0 comments · Fixed by #20729
Closed
6 tasks done

[BUG][Java] Microprofile missing cookie param support leads to invalid code #20727

Munken opened this issue Feb 25, 2025 · 0 comments · Fixed by #20729

Comments

@Munken
Copy link
Contributor

Munken commented Feb 25, 2025

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

The Java MicroProfile generator is missing support for cookie parameters and generates invalid code when > 1 parameters.

openapi-generator version

7.12.0.
Not a regression. Simply not implemented

OpenAPI declaration file content or url
openapi: "3.0.0"
info:
  version: 2.0.0
  title: test
paths:
  /pets:
    get:
      summary: bla
      operationId: getCustomer
      parameters:
        - name: first
          in: header
          schema:
            type: string
        - name: cookieParameter
          in: cookie
          schema:
            type: string
      responses:
        '200':
          description: OK
Generation Details
openapi-generator-cli generate -i pets -o pets -g java -library microprofile 
Steps to reproduce

Run the Java/microprofile generator on the provided sample.

Related issues/PRs
Suggest a fix

I will submit a file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant