mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 15:47:01 +00:00
feature/Basic ConsumerKey Validation accepts UUID
This commit is contained in:
parent
41b1a00819
commit
a91acce206
@ -756,7 +756,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
|
||||
/** only A-Z, a-z, 0-9 and max length <= 512 */
|
||||
def basicConsumerKeyValidation(value:String): String ={
|
||||
val valueLength = value.length
|
||||
val regex = """^([A-Za-z0-9]+)$""".r
|
||||
val regex = """^([A-Za-z0-9-]+)$""".r
|
||||
value match {
|
||||
case regex(e) if(valueLength <= 512) => SILENCE_IS_GOLDEN
|
||||
case regex(e) if(valueLength > 512) => ErrorMessages.ConsumerKeyIsToLong
|
||||
|
||||
Loading…
Reference in New Issue
Block a user