375a9e36784c8d008ca9a32530ee70969f781025
[nonrtric/plt/sme.git] / capifcore / internal / publishserviceapi / typevalidation.go
1 package publishserviceapi
2
3 import (
4         "errors"
5         //"fmt"
6         "strings"
7 )
8
9 func (sd ServiceAPIDescription) Validate() error {
10         if len(strings.TrimSpace(sd.ApiName)) == 0 {
11                 return errors.New("ServiceAPIDescription missing required apiName")
12         }
13         return nil
14 }