William Cheng 3143390d59
[java][okhttp-gson] Add streaming support in group parameters (#12601)
* add streaming support in group paramters

* add tests
2022-06-16 16:20:32 +08:00

93 lines
2.1 KiB
YAML

openapi: 3.0.1
info:
title: ping some object
version: "1.0"
servers:
- url: http://localhost:8082/
paths:
/ping:
get:
operationId: getPing
parameters:
- description: ID of pet that needs to be updated
explode: true
in: query
name: petId
required: true
schema:
format: int64
type: integer
style: form
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/getPing_request'
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/SomeObj'
description: OK
tags:
- ping
x-streaming: true
x-group-parameters: true
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
post:
operationId: postPing
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SomeObj'
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/SomeObj'
description: OK
tags:
- ping
x-streaming: true
x-content-type: application/json
x-accepts: application/json
components:
schemas:
SomeObj:
example:
name: name
active: true
$_type: SomeObjIdentifier
id: 0
type: type
properties:
$_type:
default: SomeObjIdentifier
enum:
- SomeObjIdentifier
type: string
id:
format: int64
type: integer
name:
type: string
active:
type: boolean
type:
type: string
type: object
getPing_request:
properties:
name:
description: Updated name of the pet
type: string
status:
description: Updated status of the pet
type: string
type: object