-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Melhoria nas validações e novos testes (#28)
* fix: 🐛 Modificações realizadas nas funções validate(), checkErrorsPerSchema(), checkMissingProperty(), revalidateSchema() - validate():Criei uma variavel booleana(objTreated) para auxiliar na validação dos objetos. - checkErrorsPerSchema():Criei uma variavel booleana(itemTreated) que verifica se aquele item do objeto já teve seu erro tratado. - checkMissingProperty():Utiliza a variavel objTreated para verificar se aquele objeto já teve seu erro tratado. - revalidateSchema():Implementei uma verificação que valida se aquele objeto já teve seu erro tratado e então defini o valor da variavel objTreated. * perf: ⚡ Implementado novos testes unitários e melhorias nos logs Adicionado testes caixa preta para a funcão validate Co-authored-by: Gabriel Tellaroli Ramos <[email protected]>
- Loading branch information
1 parent
8529899
commit 26b583c
Showing
11 changed files
with
709 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.