William Cheng 602cffbb13
[java][okhttp] Add CI tests for streaming (#10678)
* add ci tests for streaming

* use spaces instead of tabs

* update samples
2021-10-24 18:59:15 +08:00

54 lines
1.1 KiB
YAML

openapi: 3.0.1
info:
title: ping some object
version: "1.0"
servers:
- url: http://localhost:8082/
paths:
/ping:
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-contentType: 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