File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
src/main/java/com/github/hrytsenko/jsondata/springboot/web Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,8 @@ class ValidateRequestAspect {
3535 void handle (JoinPoint point , ValidateRequest config ) {
3636 JsonEntity <?> target = (JsonEntity <?>) point .getArgs ()[0 ];
3737
38- String schemaName = config .value ();
3938 try {
40- validatorSource .getValidator (schemaName )
39+ validatorSource .getValidator (config . value () )
4140 .validate (target );
4241 } catch (JsonValidatorException exception ) {
4342 throw new ServiceException .BadRequest ("INVALID_REQUEST" , exception );
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ class ValidateResponseAspect {
3737 Object handle (ProceedingJoinPoint point , ValidateResponse config ) {
3838 JsonEntity <?> target = (JsonEntity <?>) point .proceed ();
3939
40- String schemaName = config .value ();
4140 try {
4241 validatorSource .getValidator (config .value ())
4342 .validate (target );
You can’t perform that action at this time.
0 commit comments