docs: fix decode_cursor docstring found in verify
The docstring said every field is checked for the server's notation;
only i is, t is checked for type, and unknown fields are ignored. Also
note in tasks.md that the re-encoding check of 3.3 was replaced in 7.2
and fix the rules table. Behaviour of 8fe467a is unchanged; lint and
make test_isolated passed again (138 + 4).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
| Что правим | Правила |
|
||||
|---|---|
|
||||
| `student-tests/` | `student-tests.md`, `api-contract.md` |
|
||||
| `src/api/schemas/` | `dto.md`, `api-contract.md` |
|
||||
| `src/api/schemas/` | `api-contract.md`, `api-layer.md` (`dto.md` — для `src/schemas/**`, здесь не действует) |
|
||||
| `src/api/routers/` | `api-layer.md`, `api-contract.md` |
|
||||
| `src/utils/` | `api-contract.md` (пагинация), `service-layer.md` (курсор) |
|
||||
|
||||
@@ -115,7 +115,8 @@
|
||||
- [x] 3.3 `decode_cursor` (`src/utils/cursor.py`):
|
||||
- `t` и `i` — строки;
|
||||
- `except` только `ValueError`;
|
||||
- обратная сборка через `encode_cursor` и сравнение со входом;
|
||||
- обратная сборка через `encode_cursor` и сравнение со входом
|
||||
(заменена проверкой полей в 7.2);
|
||||
- докстринг модуля и функции — под новое правило.
|
||||
|
||||
Проверка: `uv run python -c` — на всех вариантах 2.1 и на
|
||||
@@ -216,7 +217,7 @@
|
||||
|
||||
## 6. Завершение
|
||||
|
||||
- [ ] 6.1 `/opsx:verify strict-id-validation`. Найденное исправить
|
||||
- [x] 6.1 `/opsx:verify strict-id-validation`. Найденное исправить
|
||||
новым commit с повтором затронутых проверок.
|
||||
- [ ] 6.2 `/opsx:archive strict-id-validation` после ок пользователя.
|
||||
Проверка: change в `openspec/changes/archive/`, активных changes нет.
|
||||
|
||||
Reference in New Issue
Block a user