From c905647cbc3aab9f1289cd81b04c42de12e98543 Mon Sep 17 00:00:00 2001 From: yash sharma Date: Fri, 25 Aug 2023 18:48:28 +0530 Subject: [PATCH] renamed file Signed-off-by: yash sharma --- .../publishCatalogItem.json} | 0 schemas/configuration/publishSchema.json | 49 ------------------- .../uiSchemaPublishCatalogItem.json} | 0 schemas/schemaProvider.go | 4 +- 4 files changed, 2 insertions(+), 51 deletions(-) rename schemas/{publish/publishModal.json => configuration/publishCatalogItem.json} (100%) delete mode 100644 schemas/configuration/publishSchema.json rename schemas/{publish/uiSchemaPublishSchema.json => configuration/uiSchemaPublishCatalogItem.json} (100%) diff --git a/schemas/publish/publishModal.json b/schemas/configuration/publishCatalogItem.json similarity index 100% rename from schemas/publish/publishModal.json rename to schemas/configuration/publishCatalogItem.json diff --git a/schemas/configuration/publishSchema.json b/schemas/configuration/publishSchema.json deleted file mode 100644 index 601a3a96..00000000 --- a/schemas/configuration/publishSchema.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "type": "object", - "properties": { - "compatibility": { - "type": "array", - "title": "Technology", - "items": { - "enum": ["istio", "linkerd"], - "type": "string" - }, - "uniqueItems": true, - "minItems": 1, - "description": "The list of compatible technologies.", - "x-rjsf-grid-area": 6 - }, - "pattern_caveats": { - "type": "string", - "title": "Caveats and Considerations", - "description": "Caveats related to the design.", - "format": "textarea", - "x-rjsf-grid-area": 12 - }, - "pattern_info": { - "type": "string", - "title": "Description", - "description": "Additional information about the design.", - "format": "textarea", - "x-rjsf-grid-area": 12 - }, - "type": { - "type": "string", - "title": "Type", - "enum": [ - "deployment", - "observability", - "resiliency", - "scaling", - "security", - "traffic-management", - "troubleshooting", - "workloads" - ], - "default": "deployment", - "description": "The category of the pattern.", - "x-rjsf-grid-area": 6 - } - }, - "required": ["compatibility", "pattern_caveats", "pattern_info", "type"] -} diff --git a/schemas/publish/uiSchemaPublishSchema.json b/schemas/configuration/uiSchemaPublishCatalogItem.json similarity index 100% rename from schemas/publish/uiSchemaPublishSchema.json rename to schemas/configuration/uiSchemaPublishCatalogItem.json diff --git a/schemas/schemaProvider.go b/schemas/schemaProvider.go index 3746ba80..7c29fe6b 100644 --- a/schemas/schemaProvider.go +++ b/schemas/schemaProvider.go @@ -9,7 +9,7 @@ func getSchemaMap() map[string]string { "application": "configuration/applicationImport.json", "filter": "configuration/filterImport.json", "design": "configuration/designImport.json", - "publish": "publish/publishModal.json", + "publish": "configuration/publishCatalogItem.json", } } @@ -18,7 +18,7 @@ func getUiSchemaMap() map[string]string { "application": "configuration/uiSchemaApplication.json", "design": "configuration/uiSchemaDesignImport.json", "filter": "configuration/uiSchemaFilter.json", - "publish": "publish/uiSchemaPublishSchema.json", + "publish": "configuration/uiSchemaPublishCatalogItem.json", } }