You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2014/12/14 18:15:08 UTC

[02/16] stratos git commit: added category to JSON schema

added category to JSON schema


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/361f6d76
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/361f6d76
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/361f6d76

Branch: refs/heads/4.1.0-test
Commit: 361f6d76ffd54bb5ee7745211cba86024a36425c
Parents: 4aec6d3
Author: Dakshika Jayathilaka <si...@gmail.com>
Authored: Sun Dec 14 17:12:27 2014 +0530
Committer: Dakshika Jayathilaka <si...@gmail.com>
Committed: Sun Dec 14 17:12:27 2014 +0530

----------------------------------------------------------------------
 .../forms/default/configure/cartridges.json            |  1 +
 .../controllers/forms/schema/configure/cartridges.json | 13 ++++++++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/361f6d76/components/org.apache.stratos.manager.console/console/controllers/forms/default/configure/cartridges.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/forms/default/configure/cartridges.json b/components/org.apache.stratos.manager.console/console/controllers/forms/default/configure/cartridges.json
index fbe9df4..780264d 100644
--- a/components/org.apache.stratos.manager.console/console/controllers/forms/default/configure/cartridges.json
+++ b/components/org.apache.stratos.manager.console/console/controllers/forms/default/configure/cartridges.json
@@ -1,5 +1,6 @@
 {
     "type":"php",
+    "category":"framework",
     "isPublic":false,
     "provider":"apache",
     "host":"stratos.org",

http://git-wip-us.apache.org/repos/asf/stratos/blob/361f6d76/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/cartridges.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/cartridges.json b/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/cartridges.json
index 772b336..33c916e 100644
--- a/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/cartridges.json
+++ b/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/cartridges.json
@@ -8,7 +8,7 @@
         "disable_properties": true,
         "disable_collapse": true
     },
-    "required": ["type", "provider", "host", "displayName", "description", "version", "multiTenant", "portMapping"],
+    "required": ["type","category", "provider", "host", "displayName", "description", "version", "multiTenant", "portMapping"],
     "properties": {
         "type": {
             "type": "string",
@@ -20,6 +20,17 @@
             "propertyOrder": 1,
             "maxItems": 1
         },
+        "category": {
+            "type": "string",
+            "id": "root/category",
+            "id": "root/category",
+            "title": "Category",
+            "name": "Category",
+            "default": "framework",
+            "propertyOrder": 1,
+            "maxItems": 1,
+            "enum": ["application","framework","data","lb"]
+        },
         "isPublic": {
             "type": "boolean",
             "id": "root/isPublic",