Commit f33a5c8
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Fix TokenObtainPairSerializer to declare access and refresh fields for schema accuracy
- Explicitly declare 'access' and 'refresh' fields as read-only
- Ensures schema generators (drf-yasg, DRF core) reflect the actual response
- No runtime behavior change1 parent 8196ba0 commit f33a5c8
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| |||
0 commit comments