Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docs/.agent/docs_coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
| **Validation** | | | |
| Sync Validation | `docs/cookbook/src/crates/rustapi_validate.md` | `rustapi-validate/src/lib.rs` (`Validate`) | OK |
| Async Validation | `docs/cookbook/src/crates/rustapi_validate.md` | `rustapi-validate/src/v2/mod.rs` (`AsyncValidate`) | OK |
| Custom Validation | `recipes/custom_validation.md` | `rustapi-validate/src/custom.rs` | OK |
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The coverage map entry for Custom Validation incorrectly references rustapi-validate/src/custom.rs as the source. While this file exists, it provides a programmatic Validator builder API that is not integrated with the #[derive(Validate)] macro. The actual source for custom validation is custom_async support in rustapi-macros/src/lib.rs (lines 1426-1460) which only supports async custom validators. Since the recipe incorrectly documents synchronous custom validators that don't exist, this coverage entry is misleading.

Suggested change
| Custom Validation | `recipes/custom_validation.md` | `rustapi-validate/src/custom.rs` | OK |
| Custom Validation | `recipes/custom_validation.md` | `rustapi-macros/src/lib.rs` (`custom_async`) | Needs Update |

Copilot uses AI. Check for mistakes.
| **Extras** | | | |
| Auth (JWT) | `recipes/jwt_auth.md` | `rustapi-extras/src/jwt` | OK |
| Auth (OAuth2) | `recipes/oauth2_client.md` | `rustapi-extras/src/oauth2` | OK |
Expand All @@ -34,9 +35,11 @@
| AI / TOON | `recipes/ai_integration.md` | `rustapi-toon` | OK |
| WebSockets | `recipes/websockets.md` | `rustapi-ws` | Updated |
| **Learning** | | | |
| Structured Path | `learning/curriculum.md` | N/A | Updated (Mini Projects) |
| Structured Path | `learning/curriculum.md` | N/A | Enhanced (Tasks & Knowledge Checks) |
| **Recipes** | | | |
| File Uploads | `recipes/file_uploads.md` | `rustapi-core` | Updated (Buffered) |
| File Uploads | `recipes/file_uploads.md` | `rustapi-core` | OK |
| Deployment | `recipes/deployment.md` | `cargo-rustapi` | OK |
| Testing | `recipes/testing.md` | `rustapi-testing` | OK |
| Graceful Shutdown | `recipes/graceful_shutdown.md` | `rustapi-core/src/server.rs` (`run_with_shutdown`) | OK |
| CI Simulation | `recipes/ci_simulation.md` | `scripts/simulate_ci.ps1` | OK |
| Maintenance | `recipes/maintenance.md` | `scripts/check_quality.ps1` | OK |
4 changes: 2 additions & 2 deletions docs/.agent/last_run.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"last_processed_ref": "v0.1.335",
"date": "2026-02-23",
"notes": "Fixed MockServer examples in testing recipe. Added Graceful Shutdown recipe. Enhanced Learning Path with 'The Email Worker' mini-project."
"date": "2026-02-24",
"notes": "Enhanced Learning Path with tasks and knowledge checks. Added Custom Validation recipe. Added unlisted recipes to Summary."
}
41 changes: 41 additions & 0 deletions docs/.agent/run_report_2026-02-24.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Run Report: 2026-02-24

## Version Detection
- **Version**: `v0.1.335`
- **Changes since last run**: None (Continuous Improvement run).

## Documentation Updates

### 1. Learning Path Improvements
- **File**: `docs/cookbook/src/learning/curriculum.md`
- **Changes**:
- Added explicit numbered tasks to all modules.
- Expanded "Knowledge Check" sections with more questions.
- Improved descriptions for Mini Projects.
- Added references to new recipes.

### 2. New Cookbook Recipe
- **File**: `docs/cookbook/src/recipes/custom_validation.md`
- **Content**:
- Synchronous custom validators (`#[validate(custom = "...")]`).
- Asynchronous custom validators (`#[validate(custom_async = "...")]`).
- Using `ValidationContext` for dependency injection.
- Full runnable example.

### 3. Cookbook Structure
- **File**: `docs/cookbook/src/SUMMARY.md`
- **Changes**:
- Added `Custom Validation` to recipes.
- Added `CI Simulation` and `Maintenance & Quality` to recipes (previously unlisted).
- **File**: `docs/cookbook/src/recipes/README.md`
- **Changes**:
- Synced with `SUMMARY.md`.

## Coverage Status
- **Validation**: Coverage improved with dedicated custom validation guide.
- **Learning**: Curriculum is now more actionable and interactive.
- **Recipes**: Unlisted recipes are now discoverable.

## Next Steps
- Review `rustapi-grpc` documentation for completeness.
- Consider adding a recipe for "Advanced Error Handling".
3 changes: 3 additions & 0 deletions docs/cookbook/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- [Creating Resources](recipes/crud_resource.md)
- [Pagination & HATEOAS](recipes/pagination.md)
- [OpenAPI & Schemas](recipes/openapi_refs.md)
- [Custom Validation](recipes/custom_validation.md)
- [JWT Authentication](recipes/jwt_auth.md)
- [OAuth2 Client](recipes/oauth2_client.md)
- [CSRF Protection](recipes/csrf_protection.md)
Expand All @@ -53,6 +54,8 @@
- [HTTP/3 (QUIC)](recipes/http3_quic.md)
- [gRPC Integration](recipes/grpc_integration.md)
- [Automatic Status Page](recipes/status_page.md)
- [CI Simulation](recipes/ci_simulation.md)
- [Maintenance & Quality](recipes/maintenance.md)

- [Troubleshooting: Common Gotchas](troubleshooting.md)

Expand Down
Loading
Loading