mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 14:46:49 +00:00
docfix/Tweak comments and props explanation
This commit is contained in:
parent
7d05d8152d
commit
df674cb523
@ -165,7 +165,7 @@ jwt.use.ssl=false
|
||||
# Bypass TPP signature validation
|
||||
# bypass_tpp_signature_validation = false
|
||||
|
||||
## Reject Berlin Group Consents in status "received" after defined time
|
||||
## Reject Berlin Group Consents in status "received" after defined time in minutes
|
||||
# berlin_group_outdated_consents_interval = 5
|
||||
|
||||
|
||||
|
||||
@ -48,19 +48,19 @@ object BgSpecValidation {
|
||||
// Example usage
|
||||
def main(args: Array[String]): Unit = {
|
||||
val testDates = Seq(
|
||||
"2025-05-10", // ❌ More than 180 days ahead
|
||||
"9999-12-31", // ❌ Exceeds max allowed
|
||||
"2015-01-01", // ❌ In the past
|
||||
"invalid-date", // ❌ Invalid format
|
||||
LocalDate.now().plusDays(90).toString, // ✅ Valid (within 180 days)
|
||||
LocalDate.now().plusDays(180).toString, // ✅ Valid (exactly 180 days)
|
||||
LocalDate.now().plusDays(181).toString // ❌ More than 180 days
|
||||
"2025-05-10", // More than 180 days ahead
|
||||
"9999-12-31", // Exceeds max allowed
|
||||
"2015-01-01", // In the past
|
||||
"invalid-date", // Invalid format
|
||||
LocalDate.now().plusDays(90).toString, // Valid (within 180 days)
|
||||
LocalDate.now().plusDays(180).toString, // Valid (exactly 180 days)
|
||||
LocalDate.now().plusDays(181).toString // More than 180 days
|
||||
)
|
||||
|
||||
testDates.foreach { date =>
|
||||
validateValidUntil(date) match {
|
||||
case Right(validDate) => println(s"✅ Valid date: $validDate")
|
||||
case Left(error) => println(s"❌ Error: $error")
|
||||
case Right(validDate) => println(s"Valid date: $validDate")
|
||||
case Left(error) => println(s"Error: $error")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user