Sakuten / backend

創作展Webシステム バックエンド
MIT License
2 stars 1 forks source link

`responses`フィールドがリスト(/health) #203

Closed coord-e closed 6 years ago

coord-e commented 6 years ago

Step 1: 環境

Step 2: 問題

https://github.com/Sakuten/backend/blob/b6672e0459cf1e5f716bcbbfd7da29ab240b9c0c/api/spec/routes/api/health.yml#L4

/apispec_1.jsonが500を吐きます。 サーバー側エラー:

2018-09-12T14:18:58.419914+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/flask/views.py", line 88, in view
2018-09-12T14:18:58.419915+00:00 app[web.1]:     return self.dispatch_request(*args, **kwargs)
2018-09-12T14:18:58.419917+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/flask/views.py", line 158, in dispatch_request
2018-09-12T14:18:58.419918+00:00 app[web.1]:     return meth(*args, **kwargs)
2018-09-12T14:18:58.419919+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/flasgger/base.py", line 243, in get
2018-09-12T14:18:58.419920+00:00 app[web.1]:     for key, value in responses.items()
2018-09-12T14:18:58.419926+00:00 app[web.1]: AttributeError: 'list' object has no attribute 'items'

どうなるべきだったのか:

Cj-bc commented 6 years ago

close with merging of #207