NimbleMVC / NimbleMVC/Framework
Centralizacja walidacji danych wejściowych
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Implementacja centralnego mechanizmu walidacji zastępującego rozproszoną weryfikację danych wejściowych. Obecne rozwiązanie powoduje duplikację kodu i niespójne podejście do weryfikacji.
Szczegóły techniczne
- Utworzenie interfejsu RuleInterface dla reguł walidacyjnych
- Implementacja klasy Validator obsługującej zestaw reguł
- Integracja z AbstractController poprzez metodę validateRequest()
- Rozszerzenie ValidationException o obsługę wielu komunikatów
Korzyści
- Redukcja duplikacji kodu o ~40%
- Standaryzacja komunikatów błędów
- Ułatwienie testowania
- Poprawa bezpieczeństwa aplikacji
Kryteria akceptacji
- Validator obsługuje podstawowe typy danych
- Implementacja min. 10 podstawowych reguł walidacyjnych
- Mechanizm podmiany komunikatów błędów
- Testy jednostkowe dla walidatora
- Integracja z istniejącym mechanizmem obsługi wyjątków
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining AbstractController, ValidationException, and the existing distributed input-validation code. Define the RuleInterface and Validator responsibilities, then verify the acceptance criteria: at least 10 rules, customizable messages, unit tests, and integration with exception handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100