File tree Expand file tree Collapse file tree
main/java/com/networknt/schema
draft2019-09/optional/format Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7171 <version .mockito>2.7.21</version .mockito>
7272 <version .hamcrest>2.2</version .hamcrest>
7373 <version .undertow>2.2.14.Final</version .undertow>
74- <version .itu>1.3.0 </version .itu>
74+ <version .itu>1.5.1 </version .itu>
7575 </properties >
7676 <dependencies >
7777 <dependency >
Original file line number Diff line number Diff line change @@ -65,7 +65,11 @@ private boolean isLegalDateTime(String string) {
6565 return tryParse (() -> {
6666 try {
6767 ITU .parseDateTime (string );
68- } catch (LeapSecondException ignored ) {}
68+ } catch (LeapSecondException ex ) {
69+ if (!ex .isVerifiedValidLeapYearMonth ()) {
70+ throw ex ;
71+ }
72+ }
6973 });
7074 } else {
7175 throw new IllegalStateException ("Unknown format: " + formatName );
Original file line number Diff line number Diff line change 7272 },
7373 {
7474 "description" : " an invalid date-time string with leap second" ,
75- "data" : " 1998-10 -31T23:59:60Z" ,
75+ "data" : " 1997-12 -31T23:59:60Z" ,
7676 "valid" : false
7777 }
7878 ]
Original file line number Diff line number Diff line change 7272 },
7373 {
7474 "description" : " an invalid date-time string with leap second" ,
75- "data" : " 1998-10 -31T23:59:60Z" ,
75+ "data" : " 1997-12 -31T23:59:60Z" ,
7676 "valid" : false
7777 }
7878 ]
You can’t perform that action at this time.
0 commit comments