You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the actual output vs expected output?
An exception is thrown when the server does return a null for an optional array
Description
The Java GSON client does currently not accept a null for an optional array. Sadly, my server generates nulls instead of omitting the item. The client should accept it instead of throwing an exception
openapi-generator version
master
OpenAPI declaration file content or url
openapi: 3.0.1info:
title: Test APIdescription: Test APIversion: '0.1'paths:
/api/jobs:
get:
summary: Gets a joboperationId: getsJobresponses:
'200':
description: OKcontent:
application/json:
schema:
type: arrayitems:
$ref: '#/components/schemas/Test'components:
schemas:
Test:
required:
- idtype: objectproperties:
id:
type: integerdescription: An idformat: int64example: 1
Bug Report Checklist
An exception is thrown when the server does return a null for an optional array
Description
The Java GSON client does currently not accept a null for an optional array. Sadly, my server generates nulls instead of omitting the item. The client should accept it instead of throwing an exception
openapi-generator version
master
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
I'm generating the client with
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: