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", } }