From 745265279e7ed7fb59f2614eb6a23379c0c2ae8c Mon Sep 17 00:00:00 2001 From: MUzairS15 Date: Sat, 22 Jun 2024 20:04:53 +0530 Subject: [PATCH 1/2] change goversion to 1.21 Signed-off-by: MUzairS15 --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 0b8d44534b..fb5a89e291 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/meshery/schemas -go 1.21.10 +go 1.21 require ( github.com/gofrs/uuid v4.4.0+incompatible From 73690755fcd143892d7c851052269fc0d98e3ef0 Mon Sep 17 00:00:00 2001 From: MUzairS15 Date: Sat, 22 Jun 2024 20:55:06 +0530 Subject: [PATCH 2/2] order props Signed-off-by: MUzairS15 --- models/patterns/patterns.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/models/patterns/patterns.go b/models/patterns/patterns.go index c36a6abd1b..72135c2229 100644 --- a/models/patterns/patterns.go +++ b/models/patterns/patterns.go @@ -80,15 +80,16 @@ type Service struct { type PatternFile struct { // Name Name of the design Name string `json:"name"` - + + // Version Version of the design + Version string `json:"version,omitempty"` + // SchemaVersion Specifies the version of the schema to which the design conforms. SchemaVersion string `json:"schemaVersion,omitempty"` // Services Map of component IDs/names to their corresponding component declarations Services map[string]*Service `json:"services"` - // Version Version of the design - Version string `json:"version,omitempty"` } // MesheryPattern defines model for mesheryPattern.