refactor/add_operationId_to_MessageDoc

This commit is contained in:
shuang 2020-11-27 09:05:32 +08:00
parent 56f6ffcab3
commit 2b4a14f856
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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