File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
gbfs-validator-java/src/main/java/org/entur/gbfs/validation/validator Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,13 @@ public FileValidationResult validate(
6565 int errorsCount = 0 ;
6666 List <FileValidationError > validationErrors = List .of ();
6767
68+ org .everit .json .schema .Schema schema = version .getSchema (
69+ feedName ,
70+ feedMap
71+ );
72+
6873 try {
69- version .validate (feedName , feedMap );
74+ schema .validate (feed );
7075 } catch (ValidationException validationException ) {
7176 errorsCount = validationException .getViolationCount ();
7277 validationErrors = mapToValidationErrors (validationException );
@@ -77,7 +82,7 @@ public FileValidationResult validate(
7782 isRequired (feedName ),
7883 feed != null ,
7984 errorsCount ,
80- version . getSchema ( feedName , feedMap ) .toString (),
85+ schema .toString (),
8186 Optional .ofNullable (feed ).map (JSONObject ::toString ).orElse (null ),
8287 version .getVersionString (),
8388 validationErrors ,
You can’t perform that action at this time.
0 commit comments