mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 15:06:50 +00:00
refactor/add_operationId_to_MessageDoc
This commit is contained in:
parent
56f6ffcab3
commit
2b4a14f856
@ -1234,6 +1234,9 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
|
||||
|"""
|
||||
}
|
||||
}
|
||||
|
||||
val operationId = s"${implementedInApiVersion.fullyQualifiedVersion}-$partialFunctionName"
|
||||
|
||||
// set dependent connector methods
|
||||
var connectorMethods: List[String] = getDependentConnectorMethods(partialFunction)
|
||||
.map("obp."+) // add prefix "obp.", as MessageDoc#process
|
||||
|
||||
@ -467,7 +467,7 @@ object JSONFactory1_4_0 extends MdcLoggable{
|
||||
val description = rd.description.stripMargin.trim ++ fieldsDescription
|
||||
|
||||
ResourceDocJson(
|
||||
operation_id = s"${rd.implementedInApiVersion.fullyQualifiedVersion}-${rd.partialFunctionName.toString}",
|
||||
operation_id = rd.operationId,
|
||||
request_verb = rd.requestVerb,
|
||||
request_url = rd.requestUrl,
|
||||
summary = rd.summary.replaceFirst("""\.(\s*)$""", "$1"), // remove the ending dot in summary
|
||||
|
||||
Loading…
Reference in New Issue
Block a user