You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The YAML file may contain syntax errors, such as incorrect indentation, missing colons, or invalid characters.",
94
107
"The file may have been corrupted or improperly edited.",
108
+
"The YAML does not conform to the Meshery model schema.",
95
109
}
96
110
97
111
remedy:= []string{
98
112
"Review the YAML syntax in the file and correct any errors.",
99
113
"Use a YAML validator or linter to identify and fix issues.",
100
114
"Ensure the file adheres to the YAML specification.",
115
+
"Ensure the YAML conforms to the Meshery model schema. You can refer to the following documentation for more details: https://docs.meshery.io/project/contributing/contributing-models",
"The JSON file may contain syntax errors, such as missing commas, curly braces, or square brackets.",
118
133
"The file may have been corrupted or improperly edited.",
119
134
"Special characters or escape sequences may not have been properly formatted.",
135
+
"The JSON does not conform to the Meshery model schema.",
120
136
}
121
137
122
138
remedy:= []string{
123
139
"Review the JSON syntax in the file and correct any errors.",
124
140
"Use a JSON validator or linter to identify and fix issues.",
125
141
"Ensure the file adheres to the JSON specification (e.g., double quotes for keys and strings).",
126
142
"Check for common issues like trailing commas or unescaped special characters.",
143
+
"Ensure the JSON conforms to the Meshery model schema. You can refer to the following documentation for more details: https://docs.meshery.io/project/contributing/contributing-models",
returnerrors.New(ErrDecodePatternCode, errors.Alert, []string{"Error failed to decode design data into go slice"}, []string{err.Error()}, []string{}, []string{})
returnerrors.New(ErrEmptyModelCode, errors.Alert, []string{"No component found in model provided."}, []string{"No component found in model provided. Models must have at least one component."}, []string{}, []string{})
regErrStore.InsertEntityRegError("", modelName, entity.EntityType("unknown"), filename, ErrDirPkgUnitParseFail(d.dirpath, fmt.Errorf("could not process the path: %w", err)))
56
-
returnpkg, ErrDirPkgUnitParseFail(d.dirpath, fmt.Errorf("could not process the path: %w", err))
0 commit comments