Commit f0d2c4f
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 75ca9ba commit f0d2c4f
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