docs: Add comprehensive package contribution guide and validation tooling

- Add bilingual README with English/Turkish language switcher
- Create detailed package contribution guidelines with platform-specific naming conventions
- Add validation script for verifying package presets against database
- Include best practices and example PR format for contributors
- Add tsx dependency for running TypeScript validation scripts
- Document validation workflow with manual and automated verification options
This commit is contained in:
Yusuf İpek
2025-11-23 14:26:07 +03:00
parent 24c80559c8
commit 9266de1f3e
14 changed files with 1594 additions and 197 deletions
+3 -3
View File
@@ -65,14 +65,14 @@ export async function POST(request: NextRequest) {
}
// Validate and set limit with better error message
if (body.limit !== undefined && (body.limit < 1 || body.limit > 50)) {
if (body.limit !== undefined && (body.limit < 1 || body.limit > 1000)) {
return NextResponse.json(
{ error: "Limit must be between 1 and 50" },
{ error: "Limit must be between 1 and 1000" },
{ status: 400 }
);
}
const limit =
body.limit && body.limit > 0 && body.limit <= 50 ? body.limit : 20;
body.limit && body.limit > 0 && body.limit <= 1000 ? body.limit : 50;
// Generate recommendations
const recommendations = await RecommendationService.generateRecommendations(