DRF 3.12.0์ ๋ํ ๋ฌธ์๊ฐ ์ ์ ๊ฒ์๋์๋ค๊ฐ ๋ค์งํ ๊ฒ์ ๋ณด์์ต๋๋ค.
์ฐ๋ฆฌ๋ ๋ง์คํฐ์ ์๋ก์ด OpenAPI ์ถ๊ฐ ๊ธฐ๋ฅ ์ค ์ผ๋ถ๋ฅผ ์ฌ์ฉํ๊ธฐ ์์ํ๊ณ , ๋ฌธ์๊ฐ ๊ฒ์๋ ๊ฒฝ์ฐ ๋ฆด๋ฆฌ์ค๊ฐ ๋๋ฌด ๋ฆ์ง ์์๋ค๊ณ ์๊ฐํ์ง๋ง ์ง๊ธ์ ์ญ์ ๋์์ผ๋ฏ๋ก 3.12.0์ด ํธ์๋์๋์ง ๋๋ ๋ณ๊ฒฝ ์ฌํญ์ด ์๋์ง ๊ถ๊ธํฉ๋๋ค. ๋ฌธ์ํ๊ฐ ์๋ฃ๋์ง ์์์ต๋๊น?
๊ฐ์ฌ ํด์!
์ฐ๋ฆฌ๋ ์ด๋ฒ ๋ฌ์ ์ถ์๋ฅผ ๊ณํํ๊ณ ์์์ง๋ง ์ฐ์ฃผ๊ฐ ์ฝ๊ฐ ๋ฐฉํด๊ฐ ๋์์ต๋๋ค.
๊ณง ์ ์ํ๋ ๊ฒ์
๋๋ค.
3.12.0 ๋ฌธ์๋ฅผ ๊ฒ์ํ์ง ์์ ๊ฒ ๊ฐ์ต๋๋ค.
๋น์ ๊ณผ ๋น์ ์ ๊ฒ์ด ๊ด์ฐฎ๊ธฐ๋ฅผ ๋ฐ๋๋๋ค. ์์ ์ ์ง. <3
@tomchristie ์ฐธ๊ณ ๋ก 3.12.0 ๋ฌธ์๊ฐ ๋ฐฑ์ ๋์์ต๋๋ค.
https://www.django-rest-framework.org/api-guide/schemas/
Python 3.8.2 (default, Jul 16 2020, 14:00:26)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.18.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from rest_framework.schemas.openapi import AutoSchema
In [2]: AutoSchema(tags=["test"])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-ceb2955bd3a2> in <module>
----> 1 AutoSchema(tags=["test"])
TypeError: __init__() got an unexpected keyword argument 'tags'
In [3]: import rest_framework
In [4]: rest_framework.__version__
Out[4]: '3.11.1'
In [5]: