-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUG][java][resttemplate] Fix NPE when query param with value null is…
… exploded (#17568) * Fix NPE when query param with value null is exploded * Polish * Add test * Update tests * Add integration test
- Loading branch information
Showing
17 changed files
with
150 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
modules/openapi-generator/src/test/resources/3_0/issue_17555.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
openapi: 3.0.0 | ||
info: | ||
description: My description | ||
version: 1.0.0 | ||
title: OpenAPI Petstore | ||
license: | ||
name: Apache-2.0 | ||
url: 'https://www.apache.org/licenses/LICENSE-2.0.html' | ||
tags: | ||
- name: department | ||
description: Everything about your Department | ||
paths: | ||
/api/department/{departmentId}/teams: | ||
get: | ||
tags: | ||
- Department | ||
summary: Find Department Teams | ||
operationId: findDepartmentTeams | ||
description: Find Department Teams | ||
parameters: | ||
- $ref: '#/components/parameters/departmentIdParam' | ||
- $ref: '#/components/parameters/teamQueryParam' | ||
responses: | ||
'200': | ||
description: OK | ||
components: | ||
schemas: | ||
TeamCriteriaDTO: | ||
type: object | ||
title: TeamCriteriaDTO | ||
properties: | ||
key: | ||
type: string | ||
name: | ||
type: string | ||
parameters: | ||
departmentIdParam: | ||
name: departmentId | ||
in: path | ||
description: ID of the department to search | ||
required: true | ||
schema: | ||
type: string | ||
teamQueryParam: | ||
name: filter | ||
in: query | ||
description: Fetch teams query | ||
required: false | ||
allowEmptyValue: true | ||
schema: | ||
$ref: '#/components/schemas/TeamCriteriaDTO' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.