[Java][native][apache-httpclient] Update toUrlQueryString to support form style for object (#14478)

* update toUrlQueryString

* add new files

* minor bug fixes

* support object in query parameter - java apache httpclient

* rename variable - java native

* update samples

* fix try catch
This commit is contained in:
William Cheng
2023-01-19 16:13:51 +08:00
committed by GitHub
parent d1cde7febe
commit 6cd7989e9e
228 changed files with 8867 additions and 688 deletions

View File

@@ -124,6 +124,29 @@ paths:
tags:
- query
x-accepts: text/plain
/query/style_form/explode_true/object/allOf:
get:
description: Test query parameter(s)
operationId: test/query/style_form/explode_true/object/allOf
parameters:
- explode: true
in: query
name: query_object
required: false
schema:
$ref: '#/components/schemas/DataQuery'
style: form
responses:
"200":
content:
text/plain:
schema:
type: string
description: Successful operation
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
/query/style_deepObject/explode_true/object:
get:
description: Test query parameter(s)
@@ -285,6 +308,29 @@ components:
color:
type: string
type: object
Query:
properties:
id:
description: Query
format: int64
type: integer
outcomes:
default:
- SUCCESS
- FAILURE
items:
enum:
- SUCCESS
- FAILURE
- SKIPPED
type: string
type: array
type: object
x-parent: true
DataQuery:
allOf:
- $ref: '#/components/schemas/DataQuery_allOf'
- $ref: '#/components/schemas/Query'
test_query_style_form_explode_true_array_string_query_object_parameter:
properties:
values:
@@ -296,4 +342,19 @@ components:
allOf:
- $ref: '#/components/schemas/Bird'
- $ref: '#/components/schemas/Category'
DataQuery_allOf:
properties:
suffix:
description: test suffix
type: string
text:
description: Some text containing white spaces
example: Some text
type: string
date:
description: A date
format: date-time
type: string
type: object
example: null