feat: support for showExtensions on Response objects (#6535)

This commit is contained in:
Shelby Sanders
2020-10-21 18:49:39 -07:00
committed by GitHub
parent 50e5f653cc
commit 6a4e52aadb
9 changed files with 115 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
openapi: "3.0.0"
paths:
/:
get:
operationId: "myOperation"
tags: ["myTag"]
summary: an operation
responses:
'200':
description: a pet to be returned
content:
application/json:
schema:
type: object
'404':
x-error: true
x-error-codes: [NOT_FOUND]
description: Not found

View File

@@ -0,0 +1,15 @@
swagger: "2.0"
paths:
/:
get:
operationId: "myOperation"
tags: ["myTag"]
summary: an operation
responses:
"200":
description: ok
'404':
x-error: true
x-error-codes: [NOT_FOUND]
description: Not found