Code Review
/
nonrtric
/
plt
/
sme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix generate apiId when registering a new service
[nonrtric/plt/sme.git]
/
capifcore
/
internal
/
publishserviceapi
/
typeupdate.go
diff --git
a/capifcore/internal/publishserviceapi/typeupdate.go
b/capifcore/internal/publishserviceapi/typeupdate.go
index
98e059c
..
4af86ef
100644
(file)
--- a/
capifcore/internal/publishserviceapi/typeupdate.go
+++ b/
capifcore/internal/publishserviceapi/typeupdate.go
@@
-20,7
+20,9
@@
package publishserviceapi
package publishserviceapi
+import "strings"
+
func (sd *ServiceAPIDescription) PrepareNewService() {
func (sd *ServiceAPIDescription) PrepareNewService() {
- apiName := "api_id_" + s
d.ApiName
+ apiName := "api_id_" + s
trings.ReplaceAll(sd.ApiName, " ", "_")
sd.ApiId = &apiName
}
sd.ApiId = &apiName
}