mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 17:37:00 +00:00
bugfix/fixed the Future.filter predicate is not satisfied bug for V500
This commit is contained in:
parent
43d9362812
commit
36b1e0ce84
@ -659,11 +659,11 @@ trait OBPRestHelper extends RestHelper with MdcLoggable {
|
||||
autoValidateAll: Boolean = false): Unit = {
|
||||
|
||||
def isAutoValidate(doc: ResourceDoc): Boolean =
|
||||
doc.isValidateEnabled || (autoValidateAll && !doc.isValidateDisabled && doc.implementedInApiVersion == version)
|
||||
doc.isValidateEnabled || (autoValidateAll && !doc.isValidateDisabled)
|
||||
|
||||
for(route <- routes) {
|
||||
// one endpoint can have multiple ResourceDocs, so here use filter instead of find, e.g APIMethods400.Implementations400.createTransactionRequest
|
||||
val resourceDocs = allResourceDocs.filter(_.partialFunction == route)
|
||||
val resourceDocs = allResourceDocs.find(_.partialFunction == route)
|
||||
|
||||
if(resourceDocs.isEmpty) {
|
||||
oauthServe(apiPrefix(route), None)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user