Skip to content

Commit

Permalink
Fixed generation example values for date properties
Browse files Browse the repository at this point in the history
Fixes #418
  • Loading branch information
ysrbo committed Oct 17, 2023
1 parent 4343a79 commit c015c58
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ private Optional<DateFormat> getDateFormat( final String urn ) {
if ( XSD.duration.getURI().equals( urn ) ) {
return Optional.of( new SimpleDateFormat( "PddD" ) );
}
if ( XSD.date.getURI().equals( urn ) ) {
return Optional.of( new SimpleDateFormat( "yyyy-MM-dd" ) );
}
return Optional.empty();
}

Expand Down

0 comments on commit c015c58

Please sign in to comment.