Исправление генерирования ID для интерфейсов
This commit is contained in:
parent
ffab9e832e
commit
913fc3b80a
|
@ -26,6 +26,9 @@ func prepareInterfaces(project *structs.Project) *structs.Project {
|
|||
continue
|
||||
}
|
||||
for j := range project.Interfaces[i].Fields {
|
||||
if project.Interfaces[i].Fields[j].ID == uuid.Nil {
|
||||
project.Interfaces[i].Fields[j].ID = uuid.NewV4()
|
||||
}
|
||||
project.Interfaces[i].Fields[j].Name = strings.Trim(project.Interfaces[i].Fields[j].Name, " ")
|
||||
if project.Interfaces[i].Fields[j].Name == "" {
|
||||
log.Fatalf("Field in interface %s should be set", project.Interfaces[i].Name)
|
||||
|
|
Loading…
Reference in New Issue