Skip to content

Commit 7cfaf1a

Browse files
author
Mohd Uzair
authored
Merge pull request #333 from zakisk/escape_uuid
escaped uuid while encoding model in YAML
2 parents f909496 + ef0e2df commit 7cfaf1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/meshmodel/core/v1alpha1/category.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var categoryCreationLock sync.Mutex //Each model will perform a check and if the
1313

1414
// swagger:response Category
1515
type Category struct {
16-
ID uuid.UUID `json:"-"`
16+
ID uuid.UUID `json:"-" yaml:"-"`
1717
Name string `json:"name"`
1818
Metadata map[string]interface{} `json:"metadata" yaml:"metadata"`
1919
}

models/meshmodel/core/v1alpha1/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (cf *ModelFilter) Create(m map[string]interface{}) {
3333

3434
// swagger:response Model
3535
type Model struct {
36-
ID uuid.UUID `json:"-"`
36+
ID uuid.UUID `json:"-" yaml:"-"`
3737
Name string `json:"name"`
3838
Version string `json:"version"`
3939
DisplayName string `json:"displayName" gorm:"modelDisplayName"`

0 commit comments

Comments
 (0)