Created
December 10, 2017 00:52
-
-
Save nkolban/fd6aa143ed10af5446fd2950c849e503 to your computer and use it in GitHub Desktop.
Sample OpenAPI error - 2017-12-08
This file contains hidden or 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
openapi: 3.0.0 | |
info: | |
version: 0.0.1 | |
title: Sample | |
description: Sample | |
servers: | |
- url: 'https://workvm:9443' | |
paths: | |
/rest/bpm/wle/v1/service/1.3122c8b5-0f8c-42d3-b8b8-f6bb12817e84: | |
post: | |
operationId: Simple1 | |
requestBody: | |
required: true | |
description: The inputs to the BPM service. | |
content: | |
application/x-www-form-urlencoded: | |
schema: | |
type: object | |
properties: | |
action: | |
type: string | |
enum: | |
- start | |
required: | |
- start | |
params: | |
type: object | |
properties: | |
input1: | |
type: object | |
$ref: '#/components/schemas/TestBO' | |
responses: | |
'200': | |
description: OK | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
status: | |
type: string | |
data: | |
type: object | |
properties: | |
serviceStatus: | |
type: string | |
key: | |
type: string | |
step: | |
type: string | |
reset: | |
type: string | |
actions: | |
type: string | |
data: | |
type: object | |
properties: | |
output1: | |
type: string | |
output2: | |
type: object | |
$ref: '#/components/schemas/TestBO' | |
description: Description for simple1. | |
components: | |
securitySchemes: | |
basicAuth: | |
type: http | |
scheme: basic | |
schemas: | |
AnotherBO: | |
type: object | |
properties: | |
x: | |
type: string | |
'y': | |
type: string | |
z: | |
type: string | |
TestBO: | |
type: object | |
properties: | |
decimalField: | |
type: number | |
boField: | |
type: object | |
$ref: '#/components/schemas/MyInputBOType' | |
booleanField: | |
type: boolean | |
integerField: | |
type: integer | |
timeField: | |
type: string | |
format: time | |
dateField: | |
type: string | |
format: date | |
anyField: | |
type: string | |
stringField: | |
type: string | |
MyInputBOType: | |
type: object | |
properties: | |
fieldA: | |
type: string | |
fileB: | |
type: integer | |
fieldC: | |
type: boolean | |
anotherBO: | |
type: object | |
$ref: '#/components/schemas/AnotherBO' | |
fieldD: | |
type: array | |
items: | |
type: string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment