partition schema added

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

Branch: refs/heads/master
Commit: 08758f551fc5d4b8b5bc22f3ee04248ac6f7a933
Parents: 76f8206
Author: Dakshika Jayathilaka <[email protected]>
Authored: Mon Jan 26 16:10:54 2015 +0530
Committer: Dakshika Jayathilaka <[email protected]>
Committed: Tue Jan 27 12:27:02 2015 +0530

----------------------------------------------------------------------
 .../forms/schema/configure/partitions.json      | 62 ++++++++++++++++++++
 1 file changed, 62 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/08758f55/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/partitions.json
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/partitions.json
 
b/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/partitions.json
new file mode 100644
index 0000000..4f3ca58
--- /dev/null
+++ 
b/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/partitions.json
@@ -0,0 +1,62 @@
+{
+    "$schema": "http://json-schema.org/draft-04/schema#";,
+    "id": "root",
+    "type": "object",
+    "title":"Partition Definition",
+    "name": "Partition Policy",
+    "options": {
+        "disable_properties": true,
+        "disable_collapse": true
+    },
+    "properties": {
+        "id": {
+            "id": "root/id",
+            "type": "string"
+        },
+        "activeByDefault": {
+            "id": "root/activeByDefault",
+            "type": "string"
+        },
+        "partitions": {
+            "id": "root/partitions",
+            "type": "array",
+            "items": {
+                "id": "root/partitions/0",
+                "type": "object",
+                "properties": {
+                    "id": {
+                        "id": "root/partitions/0/id",
+                        "type": "string"
+                    },
+                    "provider": {
+                        "id": "root/partitions/0/provider",
+                        "type": "string"
+                    },
+                    "property": {
+                        "id": "root/partitions/0/property",
+                        "type": "array",
+                        "items": {
+                            "id": "root/partitions/0/property/0",
+                            "type": "object",
+                            "properties": {
+                                "name": {
+                                    "id": "root/partitions/0/property/0/name",
+                                    "type": "string"
+                                },
+                                "value": {
+                                    "id": "root/partitions/0/property/0/value",
+                                    "type": "string"
+                                }
+                            }
+                        }
+                    }
+                }
+            }
+        }
+    },
+    "required": [
+        "id",
+        "activeByDefault",
+        "partitions"
+    ]
+}
\ No newline at end of file

Reply via email to