Swagger 2.0 を使用してエンドポイントの応答例を作成しようとしています。
200:
description: Successful response
schema:
type: object
$ref: "#/definitions/User"
examples:
application/vnd.api+json:
- data:
attributes:
full_name: John Appleseed
- data:
attributes:
full_name: Mike Appleseed
私の API は を消費して生成しますapplication/vnd.api+json
が、それを認識しません。例を削除すると、仕様が機能します。それを指定する方法はありますか?