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 2015/05/20 22:24:23 UTC

[2/2] stratos git commit: Reformatting sample artifacts

Reformatting sample artifacts


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

Branch: refs/heads/master
Commit: a28aceca1fbf054ec077e9392b3ac881d7187cd9
Parents: 242b27d
Author: Imesh Gunaratne <im...@apache.org>
Authored: Thu May 21 02:05:21 2015 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Thu May 21 02:05:21 2015 +0530

----------------------------------------------------------------------
 .../application-policy-1.json                   |   6 +-
 .../application-policy-2.json                   |   6 +-
 .../application-policy-3.json                   |   6 +-
 .../application-policy-4.json                   |   6 +-
 .../application-policy-5.json                   |   6 +-
 .../artifacts/application.json                  |  11 +-
 .../wordpress-app/artifacts/application.json    |  10 +-
 .../artifacts/application.json                  |  60 ++--
 .../artifacts/application.json                  | 166 ++++-----
 .../artifacts/application.json                  | 354 +++++++++----------
 .../artifacts/application.json                  |  36 +-
 .../artifacts/application.json                  |  58 +--
 .../artifacts/deployment-policy.json            |  26 +-
 .../artifacts/application-signup.json           |  32 +-
 .../artifacts/application.json                  |  42 +--
 .../artifacts/domain-mappings.json              |   6 +-
 .../artifacts/application.json                  |  26 +-
 .../sample-groups/artifacts/application.json    |  40 +--
 .../artifacts/application.json                  |  46 +--
 .../group-scaling-v1/artifacts/application.json |  22 +-
 .../artifacts/application.json                  |  12 +-
 .../artifacts/application-signup.json           |  32 +-
 .../artifacts/domain-mappings.json              |   6 +-
 .../autoscaling-policy-1.json                   |  22 +-
 samples/cartridge-groups/db-group.json          |  20 +-
 samples/cartridge-groups/esb-php-group.json     |   2 +-
 ...sted-with-esb-php-nested-with-mysql-php.json |  18 +-
 samples/cartridge-groups/group1.json            |   4 +-
 samples/cartridge-groups/group1b.json           |   2 +-
 samples/cartridge-groups/group6c3.json          |   2 +-
 samples/cartridge-groups/group6c6.json          |   2 +-
 samples/cartridge-groups/group6c7.json          |   8 +-
 samples/cartridge-groups/n-level-nesting.json   |  68 ++--
 samples/cartridge-groups/tomcat-group.json      |   2 +-
 samples/cartridges/ec2/c1.json                  |   1 -
 samples/cartridges/ec2/c2.json                  |   1 -
 samples/cartridges/ec2/c3.json                  |   1 -
 samples/cartridges/ec2/c4.json                  |   1 -
 samples/cartridges/ec2/esb.json                 |   1 -
 samples/cartridges/ec2/php.json                 |   1 -
 samples/cartridges/ec2/tomcat.json              |   1 -
 samples/cartridges/ec2/tomcat1.json             |   1 -
 samples/cartridges/ec2/tomcat2.json             |   1 -
 samples/cartridges/kubernetes/c1.json           |   1 -
 samples/cartridges/kubernetes/c2.json           |   1 -
 samples/cartridges/kubernetes/c3.json           |   1 -
 samples/cartridges/kubernetes/c4.json           |   1 -
 samples/cartridges/kubernetes/esb.json          |  20 +-
 samples/cartridges/kubernetes/tomcat.json       |  16 +-
 samples/cartridges/kubernetes/tomcat1.json      |  20 +-
 samples/cartridges/kubernetes/tomcat2.json      |  20 +-
 samples/cartridges/kubernetes/tomcat3.json      |  14 +-
 samples/cartridges/kubernetes/wso2-is.json      |  10 +-
 samples/cartridges/mock/c1.json                 |   1 -
 samples/cartridges/mock/c2.json                 |   1 -
 samples/cartridges/mock/c3.json                 |   1 -
 samples/cartridges/mock/c4.json                 |   1 -
 samples/cartridges/mock/esb.json                |   7 +-
 samples/cartridges/mock/mysql.json              |   7 +-
 samples/cartridges/mock/postgres.json           |   7 +-
 samples/cartridges/mock/stratos-lb.json         |   6 +-
 samples/cartridges/mock/tomcat.json             |   5 +-
 samples/cartridges/mock/tomcat2.json            |   5 +-
 samples/cartridges/mock/tomcat3.json            |  14 +-
 samples/cartridges/mock/wso2-is.json            |  10 +-
 samples/cartridges/openstack/tomcat.json        |  39 +-
 samples/cartridges/openstack/tomcat1.json       |  35 +-
 samples/cartridges/openstack/tomcat2.json       |  35 +-
 .../deployment-policy-1.json                    |  26 +-
 .../deployment-policy-2.json                    |  54 +--
 .../deployment-policy-3.json                    |  26 +-
 .../deployment-policy-4.json                    |  94 ++---
 72 files changed, 824 insertions(+), 828 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/application-policies/application-policy-1.json
----------------------------------------------------------------------
diff --git a/samples/application-policies/application-policy-1.json b/samples/application-policies/application-policy-1.json
index deeb695..417b94f 100644
--- a/samples/application-policies/application-policy-1.json
+++ b/samples/application-policies/application-policy-1.json
@@ -1,10 +1,10 @@
 {
     "id": "application-policy-1",
-    "algorithm":"one-after-another",
-    "networkPartitions":[
+    "algorithm": "one-after-another",
+    "networkPartitions": [
         "network-partition-1"
     ],
-    "properties":[
+    "properties": [
         {
             "name": "key-1",
             "value": "value-1"

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/application-policies/application-policy-2.json
----------------------------------------------------------------------
diff --git a/samples/application-policies/application-policy-2.json b/samples/application-policies/application-policy-2.json
index b18751c..db56968 100644
--- a/samples/application-policies/application-policy-2.json
+++ b/samples/application-policies/application-policy-2.json
@@ -1,10 +1,10 @@
 {
     "id": "application-policy-2",
-    "algorithm":"all-at-once",
-    "networkPartitions":[
+    "algorithm": "all-at-once",
+    "networkPartitions": [
         "network-partition-3"
     ],
-    "properties":[
+    "properties": [
         {
             "name": "key-1",
             "value": "value-1"

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/application-policies/application-policy-3.json
----------------------------------------------------------------------
diff --git a/samples/application-policies/application-policy-3.json b/samples/application-policies/application-policy-3.json
index 704ba2c..476465b 100644
--- a/samples/application-policies/application-policy-3.json
+++ b/samples/application-policies/application-policy-3.json
@@ -1,14 +1,14 @@
 {
     "id": "application-policy-3",
-    "algorithm":"one-after-another",
-    "networkPartitions":[
+    "algorithm": "one-after-another",
+    "networkPartitions": [
         "network-partition-1",
         "network-partition-2",
         "network-partition-3",
         "network-partition-4",
         "network-partition-5"
     ],
-    "properties":[
+    "properties": [
         {
             "name": "network-partition-groups",
             "value": "network-partition-1|network-partition-2, network-partition-3, network-partition-4|network-partition-5"

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/application-policies/application-policy-4.json
----------------------------------------------------------------------
diff --git a/samples/application-policies/application-policy-4.json b/samples/application-policies/application-policy-4.json
index 701aec1..eb9002f 100644
--- a/samples/application-policies/application-policy-4.json
+++ b/samples/application-policies/application-policy-4.json
@@ -1,13 +1,13 @@
 {
     "id": "application-policy-4",
-    "algorithm":"one-after-another",
-    "networkPartitions":[
+    "algorithm": "one-after-another",
+    "networkPartitions": [
         "network-partition-1",
         "network-partition-2",
         "network-partition-3",
         "network-partition-4"
     ],
-    "properties":[
+    "properties": [
         {
             "name": "networkPartitionGroups",
             "value": "network-partition-1|network-partition-2,network-partition-3|network-partition-4"

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/application-policies/application-policy-5.json
----------------------------------------------------------------------
diff --git a/samples/application-policies/application-policy-5.json b/samples/application-policies/application-policy-5.json
index 4e1a971..cb564ae 100644
--- a/samples/application-policies/application-policy-5.json
+++ b/samples/application-policies/application-policy-5.json
@@ -1,11 +1,11 @@
 {
     "id": "application-policy-5",
-    "algorithm":"one-after-another",
-    "networkPartitions":[
+    "algorithm": "one-after-another",
+    "networkPartitions": [
         "network-partition-1",
         "network-partition-2"
     ],
-    "properties":[
+    "properties": [
         {
             "name": "networkPartitionGroups",
             "value": "network-partition-1,network-partition-2"

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/complex/tomcat-single-signon/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/complex/tomcat-single-signon/artifacts/application.json b/samples/applications/complex/tomcat-single-signon/artifacts/application.json
index 2f237c1..0147910 100644
--- a/samples/applications/complex/tomcat-single-signon/artifacts/application.json
+++ b/samples/applications/complex/tomcat-single-signon/artifacts/application.json
@@ -2,7 +2,6 @@
     "applicationId": "tomcat-single-signon",
     "alias": "tomcat-single-signon",
     "components": {
-
         "cartridges": [
             {
                 "type": "tomcat3",
@@ -12,11 +11,11 @@
                     "alias": "mytomcat3",
                     "autoscalingPolicy": "autoscaling-policy-1",
                     "deploymentPolicy": "deployment-policy-3",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/chamilad/travelocity-sample",
-                        "repoUsername":"",
-                        "repoPassword":""
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/chamilad/travelocity-sample",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             },

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/complex/wordpress-app/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/complex/wordpress-app/artifacts/application.json b/samples/applications/complex/wordpress-app/artifacts/application.json
index 4220fe2..96f3426 100644
--- a/samples/applications/complex/wordpress-app/artifacts/application.json
+++ b/samples/applications/complex/wordpress-app/artifacts/application.json
@@ -15,7 +15,7 @@
                         "cartridgeMax": 5,
                         "subscribableInfo": {
                             "alias": "my-mysql",
-			    "deploymentPolicy":"deployment-policy-2",
+                            "deploymentPolicy": "deployment-policy-2",
                             "autoscalingPolicy": "autoscaling-policy-1"
                         }
                     },
@@ -25,11 +25,11 @@
                         "cartridgeMax": 5,
                         "subscribableInfo": {
                             "alias": "my-php",
-                            "deploymentPolicy":"deployment-policy-2",
+                            "deploymentPolicy": "deployment-policy-2",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-php-applications.git"
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-php-applications.git"
                             }
                         }
                     }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/nested/complex-app-with-lb/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/nested/complex-app-with-lb/artifacts/application.json b/samples/applications/nested/complex-app-with-lb/artifacts/application.json
index 3542ee8..7561a75 100644
--- a/samples/applications/nested/complex-app-with-lb/artifacts/application.json
+++ b/samples/applications/nested/complex-app-with-lb/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-group6",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 1,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "groups": [
                     {
                         "name": "group7",
@@ -23,11 +23,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-tomcat1-group7",
                                     "autoscalingPolicy": "autoscaling-policy-1",
-                                    "artifactRepository":{
-                                       "privateRepo":false,
-                                       "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git",
-                                       "repoUsername":"",
-                                       "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-tomcat1-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             }
@@ -42,11 +42,11 @@
                         "subscribableInfo": {
                             "alias": "my-tomcat2-group6",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git",
-                               "repoUsername":"",
-                               "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-tomcat2-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -57,7 +57,7 @@
                 "alias": "my-group8",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 1,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "groups": [
                     {
                         "name": "group9",
@@ -72,11 +72,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-tomcat1-group9",
                                     "autoscalingPolicy": "autoscaling-policy-1",
-                                    "artifactRepository":{
-                                       "privateRepo":false,
-                                       "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git",
-                                       "repoUsername":"",
-                                       "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-tomcat1-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             }
@@ -91,11 +91,11 @@
                         "subscribableInfo": {
                             "alias": "my-tomcat2-group8",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git",
-                               "repoUsername":"",
-                               "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-tomcat2-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -110,7 +110,7 @@
                 "subscribableInfo": {
                     "alias": "my-stratos-lb",
                     "autoscalingPolicy": "autoscaling-policy-1",
-                    "deploymentPolicy":"deployment-policy-1"
+                    "deploymentPolicy": "deployment-policy-1"
                 }
             },
             {
@@ -120,12 +120,12 @@
                 "subscribableInfo": {
                     "alias": "my-tomcat",
                     "autoscalingPolicy": "autoscaling-policy-1",
-                    "deploymentPolicy":"deployment-policy-1",
-                    "artifactRepository":{
-                       "privateRepo":false,
-                       "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-                       "repoUsername":"",
-                       "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-1",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             }
@@ -133,7 +133,7 @@
         "dependencies": {
             "startupOrders": [
                 {
-                    "aliases" : [
+                    "aliases": [
                         "cartridge.my-tomcat",
                         "cartridge.my-stratos-lb",
                         "group.my-group6",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/nested/esb-php-nested-with-esb-php-nested-with-mysql-php-app/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/nested/esb-php-nested-with-esb-php-nested-with-mysql-php-app/artifacts/application.json b/samples/applications/nested/esb-php-nested-with-esb-php-nested-with-mysql-php-app/artifacts/application.json
index da8e512..dc32d0f 100644
--- a/samples/applications/nested/esb-php-nested-with-esb-php-nested-with-mysql-php-app/artifacts/application.json
+++ b/samples/applications/nested/esb-php-nested-with-esb-php-nested-with-mysql-php-app/artifacts/application.json
@@ -8,74 +8,74 @@
                 "alias": "my-esb-php-nested-with-esb-php-nested-with-mysql-php",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 2,
-	        "groups": [
-	            {
-        	        "name": "esb-php-nested-with-mysql-php",
-        	        "alias": "my-esb-php-nested-with-mysql-php",
-        	        "groupMinInstances": 1,
-        	        "groupMaxInstances": 2,
-			"groups": [
-                    	    {
-                        	"name": "mysql-php",
-                        	"alias": "my-mysql-php",
-                        	"groupMinInstances": 1,
-                        	"groupMaxInstances": 2,
-                        	"cartridges": [
-                        	    {
-                        	        "type": "mysql",
-                        	        "cartridgeMin": 2,
-                        	        "cartridgeMax": 5,
-                        	        "subscribableInfo": {
-                        	            "alias": "my-mysql-php-mysql",
-                        	            "deploymentPolicy":"deployment-policy-1",
-                        	            "autoscalingPolicy": "autoscaling-policy-1"
-                        	        }
-                        	    },
-                        	    {
-                        	        "type": "php",
-                        	        "cartridgeMin": 2,
-                        	        "cartridgeMax": 5,
-                        	        "subscribableInfo": {
-                        	            "alias": "my-mysql-php-php",
-                        	            "deploymentPolicy":"deployment-policy-1",
-                        	            "autoscalingPolicy": "autoscaling-policy-1",
-                        	            "artifactRepository":{
-                        	               "privateRepo":false,
-                        	               "repoUrl":"https://github.com/imesh/stratos-php-applications.git"
-                        	            }
-                        	        }
-                        	    }
-                        	]
-                    	    }
-                	],
-	                "cartridges": [
-	                    {
-        	                "type": "esb",
-                	        "cartridgeMin": 2,
-                	        "cartridgeMax": 5,
-                	        "subscribableInfo": {
-                	            "alias": "my-esb-php-nested-with-mysql-php-esb",
-                	            "deploymentPolicy":"deployment-policy-1",
-                	            "autoscalingPolicy": "autoscaling-policy-1"
-                	        }
-                	    },
-                	    {
-                	        "type": "php",
-                	        "cartridgeMin": 2,
-                	        "cartridgeMax": 5,
-                	        "subscribableInfo": {
-                	            "alias": "my-esb-php-nested-with-mysql-php-php",
-                	            "deploymentPolicy":"deployment-policy-1",
-                	            "autoscalingPolicy": "autoscaling-policy-1",
-                	            "artifactRepository":{
-                	               "privateRepo":false,
-                	               "repoUrl":"https://github.com/imesh/stratos-php-applications.git"
-                	            }
-                	        }
-                	    }
-                	]
-            	    }
-        	],
+                "groups": [
+                    {
+                        "name": "esb-php-nested-with-mysql-php",
+                        "alias": "my-esb-php-nested-with-mysql-php",
+                        "groupMinInstances": 1,
+                        "groupMaxInstances": 2,
+                        "groups": [
+                            {
+                                "name": "mysql-php",
+                                "alias": "my-mysql-php",
+                                "groupMinInstances": 1,
+                                "groupMaxInstances": 2,
+                                "cartridges": [
+                                    {
+                                        "type": "mysql",
+                                        "cartridgeMin": 2,
+                                        "cartridgeMax": 5,
+                                        "subscribableInfo": {
+                                            "alias": "my-mysql-php-mysql",
+                                            "deploymentPolicy": "deployment-policy-1",
+                                            "autoscalingPolicy": "autoscaling-policy-1"
+                                        }
+                                    },
+                                    {
+                                        "type": "php",
+                                        "cartridgeMin": 2,
+                                        "cartridgeMax": 5,
+                                        "subscribableInfo": {
+                                            "alias": "my-mysql-php-php",
+                                            "deploymentPolicy": "deployment-policy-1",
+                                            "autoscalingPolicy": "autoscaling-policy-1",
+                                            "artifactRepository": {
+                                                "privateRepo": false,
+                                                "repoUrl": "https://github.com/imesh/stratos-php-applications.git"
+                                            }
+                                        }
+                                    }
+                                ]
+                            }
+                        ],
+                        "cartridges": [
+                            {
+                                "type": "esb",
+                                "cartridgeMin": 2,
+                                "cartridgeMax": 5,
+                                "subscribableInfo": {
+                                    "alias": "my-esb-php-nested-with-mysql-php-esb",
+                                    "deploymentPolicy": "deployment-policy-1",
+                                    "autoscalingPolicy": "autoscaling-policy-1"
+                                }
+                            },
+                            {
+                                "type": "php",
+                                "cartridgeMin": 2,
+                                "cartridgeMax": 5,
+                                "subscribableInfo": {
+                                    "alias": "my-esb-php-nested-with-mysql-php-php",
+                                    "deploymentPolicy": "deployment-policy-1",
+                                    "autoscalingPolicy": "autoscaling-policy-1",
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-php-applications.git"
+                                    }
+                                }
+                            }
+                        ]
+                    }
+                ],
                 "cartridges": [
                     {
                         "type": "esb",
@@ -83,7 +83,7 @@
                         "cartridgeMax": 5,
                         "subscribableInfo": {
                             "alias": "my-esb-php-nested-with-esb-php-nested-with-mysql-php-esb",
-			    "deploymentPolicy":"deployment-policy-1",
+                            "deploymentPolicy": "deployment-policy-1",
                             "autoscalingPolicy": "autoscaling-policy-1"
                         }
                     },
@@ -93,45 +93,45 @@
                         "cartridgeMax": 5,
                         "subscribableInfo": {
                             "alias": "my-esb-php-nested-with-esb-php-nested-with-mysql-php-php",
-			    "deploymentPolicy":"deployment-policy-1",
+                            "deploymentPolicy": "deployment-policy-1",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-php-applications.git"
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-php-applications.git"
                             }
                         }
                     }
                 ]
             }
         ],
-        "cartridges" : [
+        "cartridges": [
             {
                 "type": "esb",
                 "cartridgeMin": 2,
                 "cartridgeMax": 5,
                 "subscribableInfo": {
                     "alias": "my-esb",
-		    "deploymentPolicy":"deployment-policy-1",
+                    "deploymentPolicy": "deployment-policy-1",
                     "autoscalingPolicy": "autoscaling-policy-1",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
                     }
                 }
             }
         ],
-        "cartridges" : [
+        "cartridges": [
             {
                 "type": "php",
                 "cartridgeMin": 2,
                 "cartridgeMax": 5,
                 "subscribableInfo": {
                     "alias": "my-php",
-                    "deploymentPolicy":"deployment-policy-1",
+                    "deploymentPolicy": "deployment-policy-1",
                     "autoscalingPolicy": "autoscaling-policy-1",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
                     }
                 }
             }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/nested/five-levels-nested-groups-app/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/nested/five-levels-nested-groups-app/artifacts/application.json b/samples/applications/nested/five-levels-nested-groups-app/artifacts/application.json
index 1fa30c0..ade0063 100644
--- a/samples/applications/nested/five-levels-nested-groups-app/artifacts/application.json
+++ b/samples/applications/nested/five-levels-nested-groups-app/artifacts/application.json
@@ -1,184 +1,184 @@
 {
-   "alias":"n-level-nesting-app",
-   "applicationId":"n-level-nesting",
-   "components":{
-      "groups":[
-         {
-            "name":"n-level-nesting",
-            "groupMinInstances":1,
-            "groupMaxInstances":1,
-            "alias":"n-level-nesting-group",
-            "groups":[
-               {
-                  "name":"level-one-group",
-                  "groupMinInstances":1,
-                  "groupMaxInstances":1,
-                  "alias":"level-one-group",
-                  "cartridges":[
-                     {
-                        "cartridgeMin":1,
-                        "cartridgeMax":10000000,
-                        "type":"esb",
-                        "subscribableInfo":{
-                           "alias":"level-one-group-esb",
-                           "deploymentPolicy":"deployment-policy-1",
-                           "autoscalingPolicy":"autoscaling-policy-1"
-                        }
-                     },
-                     {
-                        "cartridgeMin":1,
-                        "cartridgeMax":10000000,
-                        "type":"tomcat",
-                        "subscribableInfo":{
-                           "alias":"level-one-group-tomcat",
-                           "deploymentPolicy":"deployment-policy-1",
-                           "artifactRepository":{
-                              "privateRepo":false,
-                              "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
-                           },
-                           "autoscalingPolicy":"autoscaling-policy-1"
-                        }
-                     }
-                  ],
-                  "groups":[
-                     {
-                        "name":"level-two-group",
-                        "groupMinInstances":1,
-                        "groupMaxInstances":1,
-                        "alias":"level-two-group",
-                        "cartridges":[
-                           {
-                              "cartridgeMin":1,
-                              "cartridgeMax":10000000,
-                              "type":"esb",
-                              "subscribableInfo":{
-                                 "alias":"level-two-group-esb",
-                                 "deploymentPolicy":"deployment-policy-1",
-                                 "autoscalingPolicy":"autoscaling-policy-1"
-                              }
-                           },
-                           {
-                              "cartridgeMin":1,
-                              "cartridgeMax":10000000,
-                              "type":"tomcat",
-                              "subscribableInfo":{
-                                 "alias":"level-two-group-tomcat",
-                                 "deploymentPolicy":"deployment-policy-1",
-                                 "artifactRepository":{
-                                    "privateRepo":false,
-                                    "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
-                                 },
-                                 "autoscalingPolicy":"autoscaling-policy-1"
-                              }
-                           }
+    "alias": "n-level-nesting-app",
+    "applicationId": "n-level-nesting",
+    "components": {
+        "groups": [
+            {
+                "name": "n-level-nesting",
+                "groupMinInstances": 1,
+                "groupMaxInstances": 1,
+                "alias": "n-level-nesting-group",
+                "groups": [
+                    {
+                        "name": "level-one-group",
+                        "groupMinInstances": 1,
+                        "groupMaxInstances": 1,
+                        "alias": "level-one-group",
+                        "cartridges": [
+                            {
+                                "cartridgeMin": 1,
+                                "cartridgeMax": 10000000,
+                                "type": "esb",
+                                "subscribableInfo": {
+                                    "alias": "level-one-group-esb",
+                                    "deploymentPolicy": "deployment-policy-1",
+                                    "autoscalingPolicy": "autoscaling-policy-1"
+                                }
+                            },
+                            {
+                                "cartridgeMin": 1,
+                                "cartridgeMax": 10000000,
+                                "type": "tomcat",
+                                "subscribableInfo": {
+                                    "alias": "level-one-group-tomcat",
+                                    "deploymentPolicy": "deployment-policy-1",
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
+                                    },
+                                    "autoscalingPolicy": "autoscaling-policy-1"
+                                }
+                            }
                         ],
-                        "groups":[
-                           {
-                              "name":"level-three-group",
-                              "groupMinInstances":1,
-                              "groupMaxInstances":1,
-                              "alias":"level-three-group",
-                              "cartridges":[
-                                 {
-                                    "cartridgeMin":1,
-                                    "cartridgeMax":10000000,
-                                    "type":"esb",
-                                    "subscribableInfo":{
-                                       "alias":"level-three-group-esb",
-                                       "deploymentPolicy":"deployment-policy-1",
-                                       "autoscalingPolicy":"autoscaling-policy-1"
+                        "groups": [
+                            {
+                                "name": "level-two-group",
+                                "groupMinInstances": 1,
+                                "groupMaxInstances": 1,
+                                "alias": "level-two-group",
+                                "cartridges": [
+                                    {
+                                        "cartridgeMin": 1,
+                                        "cartridgeMax": 10000000,
+                                        "type": "esb",
+                                        "subscribableInfo": {
+                                            "alias": "level-two-group-esb",
+                                            "deploymentPolicy": "deployment-policy-1",
+                                            "autoscalingPolicy": "autoscaling-policy-1"
+                                        }
+                                    },
+                                    {
+                                        "cartridgeMin": 1,
+                                        "cartridgeMax": 10000000,
+                                        "type": "tomcat",
+                                        "subscribableInfo": {
+                                            "alias": "level-two-group-tomcat",
+                                            "deploymentPolicy": "deployment-policy-1",
+                                            "artifactRepository": {
+                                                "privateRepo": false,
+                                                "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
+                                            },
+                                            "autoscalingPolicy": "autoscaling-policy-1"
+                                        }
                                     }
-                                 },
-                                 {
-                                    "cartridgeMin":1,
-                                    "cartridgeMax":10000000,
-                                    "type":"tomcat",
-                                    "subscribableInfo":{
-                                       "alias":"level-three-group-tomcat",
-                                       "deploymentPolicy":"deployment-policy-1",
-                                       "artifactRepository":{
-                                          "privateRepo":false,
-                                          "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
-                                       },
-                                       "autoscalingPolicy":"autoscaling-policy-1"
-                                    }
-                                 }
-                              ],
-                              "groups":[
-                                 {
-                                    "name":"level-four-group",
-                                    "groupMinInstances":1,
-                                    "groupMaxInstances":1,
-                                    "alias":"level-four-group",
-                                    "cartridges":[
-                                       {
-                                          "cartridgeMin":1,
-                                          "cartridgeMax":10000000,
-                                          "type":"esb",
-                                          "subscribableInfo":{
-                                             "alias":"level-four-group-esb",
-                                             "deploymentPolicy":"deployment-policy-1",
-                                             "autoscalingPolicy":"autoscaling-policy-1"
-                                          }
-                                       },
-                                       {
-                                          "cartridgeMin":1,
-                                          "cartridgeMax":10000000,
-                                          "type":"tomcat",
-                                          "subscribableInfo":{
-                                             "alias":"level-four-group-tomcat",
-                                             "deploymentPolicy":"deployment-policy-1",
-                                             "artifactRepository":{
-                                                "privateRepo":false,
-                                                "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
-                                             },
-                                             "autoscalingPolicy":"autoscaling-policy-1"
-                                          }
-                                       }
-                                    ],
-                                    "groups":[
-                                       {
-                                          "name":"level-five-group",
-                                          "groupMinInstances":1,
-                                          "groupMaxInstances":1,
-                                          "alias":"level-five-group",
-                                          "cartridges":[
-                                             {
-                                                "cartridgeMin":1,
-                                                "cartridgeMax":10000000,
-                                                "type":"esb",
-                                                "subscribableInfo":{
-                                                   "alias":"level-five-group-esb",
-                                                   "deploymentPolicy":"deployment-policy-1",
-                                                   "autoscalingPolicy":"autoscaling-policy-1"
+                                ],
+                                "groups": [
+                                    {
+                                        "name": "level-three-group",
+                                        "groupMinInstances": 1,
+                                        "groupMaxInstances": 1,
+                                        "alias": "level-three-group",
+                                        "cartridges": [
+                                            {
+                                                "cartridgeMin": 1,
+                                                "cartridgeMax": 10000000,
+                                                "type": "esb",
+                                                "subscribableInfo": {
+                                                    "alias": "level-three-group-esb",
+                                                    "deploymentPolicy": "deployment-policy-1",
+                                                    "autoscalingPolicy": "autoscaling-policy-1"
                                                 }
-                                             },
-                                             {
-                                                "cartridgeMin":1,
-                                                "cartridgeMax":10000000,
-                                                "type":"tomcat",
-                                                "subscribableInfo":{
-                                                   "alias":"level-five-group-tomcat",
-                                                   "deploymentPolicy":"deployment-policy-1",
-                                                   "artifactRepository":{
-                                                      "privateRepo":false,
-                                                      "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
-                                                   },
-                                                   "autoscalingPolicy":"autoscaling-policy-1"
+                                            },
+                                            {
+                                                "cartridgeMin": 1,
+                                                "cartridgeMax": 10000000,
+                                                "type": "tomcat",
+                                                "subscribableInfo": {
+                                                    "alias": "level-three-group-tomcat",
+                                                    "deploymentPolicy": "deployment-policy-1",
+                                                    "artifactRepository": {
+                                                        "privateRepo": false,
+                                                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
+                                                    },
+                                                    "autoscalingPolicy": "autoscaling-policy-1"
                                                 }
-                                             }
-                                          ]
-                                       }
-                                    ]
-                                 }
-                              ]
-                           }
+                                            }
+                                        ],
+                                        "groups": [
+                                            {
+                                                "name": "level-four-group",
+                                                "groupMinInstances": 1,
+                                                "groupMaxInstances": 1,
+                                                "alias": "level-four-group",
+                                                "cartridges": [
+                                                    {
+                                                        "cartridgeMin": 1,
+                                                        "cartridgeMax": 10000000,
+                                                        "type": "esb",
+                                                        "subscribableInfo": {
+                                                            "alias": "level-four-group-esb",
+                                                            "deploymentPolicy": "deployment-policy-1",
+                                                            "autoscalingPolicy": "autoscaling-policy-1"
+                                                        }
+                                                    },
+                                                    {
+                                                        "cartridgeMin": 1,
+                                                        "cartridgeMax": 10000000,
+                                                        "type": "tomcat",
+                                                        "subscribableInfo": {
+                                                            "alias": "level-four-group-tomcat",
+                                                            "deploymentPolicy": "deployment-policy-1",
+                                                            "artifactRepository": {
+                                                                "privateRepo": false,
+                                                                "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
+                                                            },
+                                                            "autoscalingPolicy": "autoscaling-policy-1"
+                                                        }
+                                                    }
+                                                ],
+                                                "groups": [
+                                                    {
+                                                        "name": "level-five-group",
+                                                        "groupMinInstances": 1,
+                                                        "groupMaxInstances": 1,
+                                                        "alias": "level-five-group",
+                                                        "cartridges": [
+                                                            {
+                                                                "cartridgeMin": 1,
+                                                                "cartridgeMax": 10000000,
+                                                                "type": "esb",
+                                                                "subscribableInfo": {
+                                                                    "alias": "level-five-group-esb",
+                                                                    "deploymentPolicy": "deployment-policy-1",
+                                                                    "autoscalingPolicy": "autoscaling-policy-1"
+                                                                }
+                                                            },
+                                                            {
+                                                                "cartridgeMin": 1,
+                                                                "cartridgeMax": 10000000,
+                                                                "type": "tomcat",
+                                                                "subscribableInfo": {
+                                                                    "alias": "level-five-group-tomcat",
+                                                                    "deploymentPolicy": "deployment-policy-1",
+                                                                    "artifactRepository": {
+                                                                        "privateRepo": false,
+                                                                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
+                                                                    },
+                                                                    "autoscalingPolicy": "autoscaling-policy-1"
+                                                                }
+                                                            }
+                                                        ]
+                                                    }
+                                                ]
+                                            }
+                                        ]
+                                    }
+                                ]
+                            }
                         ]
-                     }
-                  ]
-               }
-            ]
-         }
-      ]
-   }
+                    }
+                ]
+            }
+        ]
+    }
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/nested/single-level-nested-group-app/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/nested/single-level-nested-group-app/artifacts/application.json b/samples/applications/nested/single-level-nested-group-app/artifacts/application.json
index 2f3267a..70a9d82 100644
--- a/samples/applications/nested/single-level-nested-group-app/artifacts/application.json
+++ b/samples/applications/nested/single-level-nested-group-app/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-group6",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 1,
-                "deploymentPolicy":"deployment-policy-2",
+                "deploymentPolicy": "deployment-policy-2",
                 "groups": [
                     {
                         "name": "group7",
@@ -23,11 +23,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-tomcat1-group7",
                                     "autoscalingPolicy": "autoscaling-policy-1",
-                                    "artifactRepository":{
-                                        "privateRepo":false,
-                                        "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git",
-                                        "repoUsername":"",
-                                        "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-tomcat1-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             }
@@ -42,11 +42,11 @@
                         "subscribableInfo": {
                             "alias": "my-tomcat2-group6",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                                "privateRepo":false,
-                                "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git",
-                                "repoUsername":"",
-                                "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-tomcat2-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -61,12 +61,12 @@
                 "subscribableInfo": {
                     "alias": "my-tomcat",
                     "autoscalingPolicy": "autoscaling-policy-1",
-                    "deploymentPolicy":"deployment-policy-2",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-                        "repoUsername":"",
-                        "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-2",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             }
@@ -74,7 +74,7 @@
         "dependencies": {
             "startupOrders": [
                 {
-                    "aliases" : [
+                    "aliases": [
                         "group.my-group6",
                         "cartridge.my-tomcat"
                     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/nested/single-level-nested-groups-app/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/nested/single-level-nested-groups-app/artifacts/application.json b/samples/applications/nested/single-level-nested-groups-app/artifacts/application.json
index 53827f3..cc400a1 100644
--- a/samples/applications/nested/single-level-nested-groups-app/artifacts/application.json
+++ b/samples/applications/nested/single-level-nested-groups-app/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-group6",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 1,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "groups": [
                     {
                         "name": "group7",
@@ -23,11 +23,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-tomcat1-group7",
                                     "autoscalingPolicy": "autoscaling-policy-1",
-                                    "artifactRepository":{
-                                       "privateRepo":false,
-                                       "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git",
-                                       "repoUsername":"",
-                                       "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-tomcat1-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             }
@@ -42,11 +42,11 @@
                         "subscribableInfo": {
                             "alias": "my-tomcat2-group6",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git",
-                               "repoUsername":"",
-                               "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-tomcat2-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -57,7 +57,7 @@
                 "alias": "my-group8",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 1,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "groups": [
                     {
                         "name": "group9",
@@ -72,11 +72,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-tomcat1-group9",
                                     "autoscalingPolicy": "autoscaling-policy-1",
-                                    "artifactRepository":{
-                                       "privateRepo":false,
-                                       "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git",
-                                       "repoUsername":"",
-                                       "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-tomcat1-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             }
@@ -91,11 +91,11 @@
                         "subscribableInfo": {
                             "alias": "my-tomcat2-group8",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git",
-                               "repoUsername":"",
-                               "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-tomcat2-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -110,12 +110,12 @@
                 "subscribableInfo": {
                     "alias": "my-tomcat",
                     "autoscalingPolicy": "autoscaling-policy-1",
-                    "deploymentPolicy":"deployment-policy-1",
-                    "artifactRepository":{
-                       "privateRepo":false,
-                       "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-                       "repoUsername":"",
-                       "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-1",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             }
@@ -123,7 +123,7 @@
         "dependencies": {
             "startupOrders": [
                 {
-                    "aliases" : [
+                    "aliases": [
                         "group.my-group8",
                         "cartridge.my-tomcat",
                         "group.my-group6"

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/nested/single-level-nested-groups-app/artifacts/deployment-policy.json
----------------------------------------------------------------------
diff --git a/samples/applications/nested/single-level-nested-groups-app/artifacts/deployment-policy.json b/samples/applications/nested/single-level-nested-groups-app/artifacts/deployment-policy.json
index 666c299..e931487 100644
--- a/samples/applications/nested/single-level-nested-groups-app/artifacts/deployment-policy.json
+++ b/samples/applications/nested/single-level-nested-groups-app/artifacts/deployment-policy.json
@@ -1,15 +1,15 @@
 {
-   "id": "deployment-policy-1",
-   "networkPartition": [
-      {
-         "id": "network-partition-1",
-         "partitionAlgo": "one-after-another",
-         "partitions": [
-            {
-               "id": "partition-1",
-               "max": 5
-            }
-         ]
-      }
-   ]
+    "id": "deployment-policy-1",
+    "networkPartition": [
+        {
+            "id": "network-partition-1",
+            "partitionAlgo": "one-after-another",
+            "partitions": [
+                {
+                    "id": "partition-1",
+                    "max": 5
+                }
+            ]
+        }
+    ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/app-bursting-pattern/artifacts/application-signup.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/app-bursting-pattern/artifacts/application-signup.json b/samples/applications/scaling/app-bursting-pattern/artifacts/application-signup.json
index 138648e..73a5774 100644
--- a/samples/applications/scaling/app-bursting-pattern/artifacts/application-signup.json
+++ b/samples/applications/scaling/app-bursting-pattern/artifacts/application-signup.json
@@ -1,18 +1,18 @@
 {
-   "artifactRepositories":[
-      {
-         "alias":"php",
-         "privateRepo":false,
-         "repoUrl":"https://github.com/imesh/stratos-php-applications.git",
-         "repoUsername":"",
-         "repoPassword":""
-      },
-      {
-         "alias":"tomcat",
-         "privateRepo":false,
-         "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-         "repoUsername":"",
-         "repoPassword":""
-      }
-   ]
+    "artifactRepositories": [
+        {
+            "alias": "php",
+            "privateRepo": false,
+            "repoUrl": "https://github.com/imesh/stratos-php-applications.git",
+            "repoUsername": "",
+            "repoPassword": ""
+        },
+        {
+            "alias": "tomcat",
+            "privateRepo": false,
+            "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+            "repoUsername": "",
+            "repoPassword": ""
+        }
+    ]
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/app-bursting-pattern/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/app-bursting-pattern/artifacts/application.json b/samples/applications/scaling/app-bursting-pattern/artifacts/application.json
index 1cb3e57..ad66f60 100644
--- a/samples/applications/scaling/app-bursting-pattern/artifacts/application.json
+++ b/samples/applications/scaling/app-bursting-pattern/artifacts/application.json
@@ -1,25 +1,25 @@
-{  
-   "applicationId":"app-bursting-pattern-app",
-   "alias":"app-bursting-pattern-app",
-   "multiTenant":false,
-   "components":{  
-      "cartridges":[  
-         {  
-                "type":"php",
+{
+    "applicationId": "app-bursting-pattern-app",
+    "alias": "app-bursting-pattern-app",
+    "multiTenant": false,
+    "components": {
+        "cartridges": [
+            {
+                "type": "php",
                 "cartridgeMin": 1,
-                "cartridgeMax": 10,    
-		"subscribableInfo":{  
-               	"alias":"my-php",
-               	"autoscalingPolicy":"autoscaling-policy-1",
-                "deploymentPolicy":"deployment-policy-4",
-                "artifactRepository":{
-                   "privateRepo":false,
-                   "repoUrl":"https://github.com/imesh/stratos-php-applications.git",
-                   "repoUsername":"",
-                   "repoPassword":""
+                "cartridgeMax": 10,
+                "subscribableInfo": {
+                    "alias": "my-php",
+                    "autoscalingPolicy": "autoscaling-policy-1",
+                    "deploymentPolicy": "deployment-policy-4",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-php-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
+                    }
                 }
             }
-         }
-      ]
-   }
+        ]
+    }
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/app-bursting-pattern/artifacts/domain-mappings.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/app-bursting-pattern/artifacts/domain-mappings.json b/samples/applications/scaling/app-bursting-pattern/artifacts/domain-mappings.json
index 17ee4f6..4086fa6 100644
--- a/samples/applications/scaling/app-bursting-pattern/artifacts/domain-mappings.json
+++ b/samples/applications/scaling/app-bursting-pattern/artifacts/domain-mappings.json
@@ -1,9 +1,9 @@
 {
     "domainMappings": [
         {
-            "cartridgeAlias":"php1",
-            "domainName":"abc.com",
-            "contextPath":"/abc/app"
+            "cartridgeAlias": "php1",
+            "domainName": "abc.com",
+            "contextPath": "/abc/app"
         }
     ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/dependent-scaling/sample-cartridges/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/dependent-scaling/sample-cartridges/artifacts/application.json b/samples/applications/scaling/dependent-scaling/sample-cartridges/artifacts/application.json
index 830e552..2f02db9 100644
--- a/samples/applications/scaling/dependent-scaling/sample-cartridges/artifacts/application.json
+++ b/samples/applications/scaling/dependent-scaling/sample-cartridges/artifacts/application.json
@@ -10,12 +10,12 @@
                 "subscribableInfo": {
                     "alias": "my-tomcat",
                     "autoscalingPolicy": "autoscaling-policy-1",
-	                "deploymentPolicy":"deployment-policy-1",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-                        "repoUsername":"",
-                        "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-1",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             },
@@ -26,12 +26,12 @@
                 "subscribableInfo": {
                     "alias": "my-php",
                     "autoscalingPolicy": "autoscaling-policy-1",
-	                "deploymentPolicy":"deployment-policy-1",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-php-applications.git",
-                        "repoUsername":"",
-                        "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-1",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-php-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             }
@@ -39,7 +39,7 @@
         "dependencies": {
             "scalingDependents": [
                 {
-                    "aliases" : [
+                    "aliases": [
                         "cartridge.my-tomcat",
                         "cartridge.my-php"
                     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/dependent-scaling/sample-groups/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/dependent-scaling/sample-groups/artifacts/application.json b/samples/applications/scaling/dependent-scaling/sample-groups/artifacts/application.json
index 29467f0..21e5991 100644
--- a/samples/applications/scaling/dependent-scaling/sample-groups/artifacts/application.json
+++ b/samples/applications/scaling/dependent-scaling/sample-groups/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-esb-php-group",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 2,
-		        "deploymentPolicy": "deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "cartridges": [
                     {
                         "type": "esb",
@@ -17,12 +17,12 @@
                         "subscribableInfo": {
                             "alias": "my-esb",
                             "autoscalingPolicy": "autoscaling-policy-1",
-	                        "deploymentPolicy":"deployment-policy-1",
-                            "artifactRepository":{
-                                "privateRepo":false,
-                                "repoUrl":"https://github.com/imesh/stratos-esb-applications.git",
-                                "repoUsername":"",
-                                "repoPassword":""
+                            "deploymentPolicy": "deployment-policy-1",
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-esb-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     },
@@ -33,12 +33,12 @@
                         "subscribableInfo": {
                             "alias": "my-php",
                             "autoscalingPolicy": "autoscaling-policy-1",
-	        	            "deploymentPolicy":"deployment-policy-1",
-                            "artifactRepository":{
-                                "privateRepo":false,
-                                "repoUrl":"https://github.com/imesh/stratos-php-applications.git",
-                                "repoUsername":"",
-                                "repoPassword":""
+                            "deploymentPolicy": "deployment-policy-1",
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-php-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -53,12 +53,12 @@
                 "subscribableInfo": {
                     "alias": "my-tomcat",
                     "autoscalingPolicy": "autoscaling-policy-1",
-	                "deploymentPolicy":"deployment-policy-1",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-                        "repoUsername":"",
-                        "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-1",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             }
@@ -66,7 +66,7 @@
         "dependencies": {
             "scalingDependents": [
                 {
-                    "aliases" : [
+                    "aliases": [
                         "group.my-esb-php-group",
                         "cartridge.my-tomcat"
                     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/group-scaling/group-scaling-app/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/group-scaling/group-scaling-app/artifacts/application.json b/samples/applications/scaling/group-scaling/group-scaling-app/artifacts/application.json
index f606b4f..545307a 100644
--- a/samples/applications/scaling/group-scaling/group-scaling-app/artifacts/application.json
+++ b/samples/applications/scaling/group-scaling/group-scaling-app/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-group1",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 1,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "groups": [
                     {
                         "name": "group2",
@@ -23,11 +23,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-c2-group2",
                                     "autoscalingPolicy": "autoscaling-policy-c2",
-                                    "artifactRepository":{
-                                        "privateRepo":false,
-                                        "repoUrl":"https://github.com/imesh/stratos-c2-applications.git",
-                                        "repoUsername":"",
-                                        "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-c2-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             },
@@ -38,11 +38,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-c3-group2",
                                     "autoscalingPolicy": "autoscaling-policy-c3",
-                                    "artifactRepository":{
-                                        "privateRepo":false,
-                                        "repoUrl":"https://github.com/imesh/stratos-c3-applications.git",
-                                        "repoUsername":"",
-                                        "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-c3-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             }
@@ -57,11 +57,11 @@
                         "subscribableInfo": {
                             "alias": "my-c1-group1",
                             "autoscalingPolicy": "autoscaling-policy-c1",
-                            "artifactRepository":{
-                                "privateRepo":false,
-                                "repoUrl":"https://github.com/imesh/stratos-c1-applications.git",
-                                "repoUsername":"",
-                                "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-c1-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -76,12 +76,12 @@
                 "subscribableInfo": {
                     "alias": "my-c4",
                     "autoscalingPolicy": "autoscaling-policy-c4",
-                    "deploymentPolicy":"deployment-policy-1",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-c4-applications.git",
-                        "repoUsername":"",
-                        "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-1",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-c4-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             }
@@ -89,7 +89,7 @@
         "dependencies": {
             "startupOrders": [
                 {
-                    "aliases" : [
+                    "aliases": [
                         "group.my-group1",
                         "cartridge.my-c4"
                     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/group-scaling/group-scaling-v1/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/group-scaling/group-scaling-v1/artifacts/application.json b/samples/applications/scaling/group-scaling/group-scaling-v1/artifacts/application.json
index c486e93..8116f0a 100644
--- a/samples/applications/scaling/group-scaling/group-scaling-v1/artifacts/application.json
+++ b/samples/applications/scaling/group-scaling/group-scaling-v1/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-group2",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 2,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "cartridges": [
                     {
                         "type": "c2",
@@ -17,11 +17,11 @@
                         "subscribableInfo": {
                             "alias": "my-c2",
                             "autoscalingPolicy": "autoscaling-policy-c2",
-                            "artifactRepository":{
-                                "privateRepo":false,
-                                "repoUrl":"https://github.com/imesh/stratos-c2-applications.git",
-                                "repoUsername":"",
-                                "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-c2-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     },
@@ -32,11 +32,11 @@
                         "subscribableInfo": {
                             "alias": "my-c3",
                             "autoscalingPolicy": "autoscaling-policy-c3",
-                            "artifactRepository":{
-                                "privateRepo":false,
-                                "repoUrl":"https://github.com/imesh/stratos-c3-applications.git",
-                                "repoUsername":"",
-                                "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-c3-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/group-scaling/single-group-group-scaling/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/group-scaling/single-group-group-scaling/artifacts/application.json b/samples/applications/scaling/group-scaling/single-group-group-scaling/artifacts/application.json
index 08c7ede..5bb6018 100644
--- a/samples/applications/scaling/group-scaling/single-group-group-scaling/artifacts/application.json
+++ b/samples/applications/scaling/group-scaling/single-group-group-scaling/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-group6",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 3,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "cartridges": [
                     {
                         "type": "tomcat",
@@ -17,11 +17,11 @@
                         "subscribableInfo": {
                             "alias": "my-tomcat",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-                               "repoUsername":"",
-                               "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/simple/single-cartridge-app/artifacts/application-signup.json
----------------------------------------------------------------------
diff --git a/samples/applications/simple/single-cartridge-app/artifacts/application-signup.json b/samples/applications/simple/single-cartridge-app/artifacts/application-signup.json
index 138648e..73a5774 100644
--- a/samples/applications/simple/single-cartridge-app/artifacts/application-signup.json
+++ b/samples/applications/simple/single-cartridge-app/artifacts/application-signup.json
@@ -1,18 +1,18 @@
 {
-   "artifactRepositories":[
-      {
-         "alias":"php",
-         "privateRepo":false,
-         "repoUrl":"https://github.com/imesh/stratos-php-applications.git",
-         "repoUsername":"",
-         "repoPassword":""
-      },
-      {
-         "alias":"tomcat",
-         "privateRepo":false,
-         "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-         "repoUsername":"",
-         "repoPassword":""
-      }
-   ]
+    "artifactRepositories": [
+        {
+            "alias": "php",
+            "privateRepo": false,
+            "repoUrl": "https://github.com/imesh/stratos-php-applications.git",
+            "repoUsername": "",
+            "repoPassword": ""
+        },
+        {
+            "alias": "tomcat",
+            "privateRepo": false,
+            "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+            "repoUsername": "",
+            "repoPassword": ""
+        }
+    ]
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/simple/single-cartridge-app/artifacts/domain-mappings.json
----------------------------------------------------------------------
diff --git a/samples/applications/simple/single-cartridge-app/artifacts/domain-mappings.json b/samples/applications/simple/single-cartridge-app/artifacts/domain-mappings.json
index 78e6008..d26db7f 100644
--- a/samples/applications/simple/single-cartridge-app/artifacts/domain-mappings.json
+++ b/samples/applications/simple/single-cartridge-app/artifacts/domain-mappings.json
@@ -1,9 +1,9 @@
 {
     "domainMappings": [
         {
-            "cartridgeAlias":"my-php",
-            "domainName":"abc.com",
-            "contextPath":"/abc/app"
+            "cartridgeAlias": "my-php",
+            "domainName": "abc.com",
+            "contextPath": "/abc/app"
         }
     ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/autoscaling-policies/autoscaling-policy-1.json
----------------------------------------------------------------------
diff --git a/samples/autoscaling-policies/autoscaling-policy-1.json b/samples/autoscaling-policies/autoscaling-policy-1.json
index 495ed7b..e5ac700 100644
--- a/samples/autoscaling-policies/autoscaling-policy-1.json
+++ b/samples/autoscaling-policies/autoscaling-policy-1.json
@@ -1,14 +1,14 @@
 {
-  "id": "autoscaling-policy-1",
-  "loadThresholds": {
-    "requestsInFlight": {
-      "threshold": 20
-    },
-    "memoryConsumption": {
-      "threshold": 70
-    },
-    "loadAverage": {
-      "threshold": 70
+    "id": "autoscaling-policy-1",
+    "loadThresholds": {
+        "requestsInFlight": {
+            "threshold": 20
+        },
+        "memoryConsumption": {
+            "threshold": 70
+        },
+        "loadAverage": {
+            "threshold": 70
+        }
     }
-  }
 }