-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
Problem statement
Vendor extensions are currently supported only as part of swagger:meta in go-swagger. However, extensions are allowed as part of paths too as referenced here: https://swagger.io/docs/specification/2-0/swagger-extensions/
As an example, the AWS API Gateway injects extensions at each path.
paths:
/alerts:
get:
description: |-
List alerts.
operationId: ListAlerts
responses:
"200":
$ref: '#/responses/ListAlertsResponse'
default:
description: Error
schema:
$ref: '#/definitions/Error'
security:
- CongnitoAuthorizer: []
summary: List Alerts
tags:
- Alerts
x-amazon-apigateway-integration:
httpMethod: GET
passthroughBehavior: when_no_match
responses:
default:
statusCode: "200"
type: http_proxy
uri: https://myproxy.com/alerts
Environment
swagger version: 0.19.0
go version: 1.11.6
OS: macOs
gogulashanth, arkalon76, antoniobuconjic and vaibhavkhulbe-nferx