From b797040f0c10da4220327166a915cb53699a35a3 Mon Sep 17 00:00:00 2001 From: MUzairS15 Date: Mon, 1 Jul 2024 18:04:53 +0530 Subject: [PATCH] update catalog schema and use proper formatting for embed Signed-off-by: MUzairS15 --- schema.go | 2 +- schemas/constructs/v1alpha1/catalog_data.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/schema.go b/schema.go index 4c5b5a6d3e..5f24168ebd 100644 --- a/schema.go +++ b/schema.go @@ -2,6 +2,6 @@ package schemas import "embed" -// go:embed schemas/openapi.yml +//go:embed schemas/openapi.yml var Schemas embed.FS diff --git a/schemas/constructs/v1alpha1/catalog_data.json b/schemas/constructs/v1alpha1/catalog_data.json index 8f2007383f..74070d7c6a 100644 --- a/schemas/constructs/v1alpha1/catalog_data.json +++ b/schemas/constructs/v1alpha1/catalog_data.json @@ -5,13 +5,12 @@ "description": "Tracks the specific content version that has been made available in the Catalog.", "type": "string" }, - "class": { + "content_class": { "description": "Published content is classifed by its support level. Content classes help you understand the origin and expected support level for each piece of content. It is important to note that the level of support may vary within each class, and you should exercise discretion when using community-contributed content. Content produced and fully supported by Meshery maintainers. This represents the highest level of support and is considered the most reliable. Content produced by partners and verified by Meshery maintainers. While not directly maintained by Meshery, it has undergone a verification process to ensure quality and compatibility. Content produced and supported by the respective project or organization responsible for the specific technology. This class offers a level of support from the project maintainers themselves. Content produced and shared by Meshery users. This includes a wide range of content, such as performance profiles, test results, filters, patterns, and applications. Community content may have varying levels of support and reliability.", "type": "string", "enum": [ "official", "verified", - "project", "community" ] }, @@ -36,6 +35,7 @@ "pattern_info": { "type": "string", "title": "Description", + "minLength": 1, "description": "Purpose of the design along with its intended and unintended uses." }, "type": {