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] [native] Missing support for arrays within deepObjects #11697

Closed
5 of 6 tasks
Reinhard-PTV opened this issue Feb 23, 2022 · 0 comments
Closed
5 of 6 tasks

Comments

@Reinhard-PTV
Copy link
Contributor

Reinhard-PTV commented Feb 23, 2022

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

In java native client generation there has to be support for arrays within deepObjects.

openapi-generator version

5.4.0

OpenAPI declaration file content or url
openapi: 3.0.3
info:
  title: deepobject-arrays
  version: 1.0.0
paths:
  /test:
    get:
      operationId: test
      parameters:
        - name: options
          in: query
          required: false
          style: deepObject
          schema:
            $ref: '#/components/schemas/Options'
          explode: true
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    Options:
      type: object
      properties:
        c:
          type: array
          items:
            type: string
Generation Details

Generate java client with native library.

Steps to reproduce
Related issues/PRs
Suggest a fix

Fix src/main/resources/Java/libraries/native/api.mustache to handle deepObject for arrays (cf. PR #11699)

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

No branches or pull requests

2 participants