[BUG] [Java] [native] Missing support for arrays within deepObjects
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)