Repository: microsoft/AzureTRE

Issue:
Rename custom_parameters.json to template_schema.json (inc in python code)



Discussion:

Resolving patch:
diff --git a/api_app/models/schemas/user_resource_template.py b/api_app/models/schemas/user_resource_template.py
--- a/api_app/models/schemas/user_resource_template.py
+++ b/api_app/models/schemas/user_resource_template.py
@@ -45,8 +45,8 @@ class Config:
                     "$schema": "http://json-schema.org/draft-07/schema",
                     "$id": "https://github.com/microsoft/AzureTRE/templates/workspaces/myworkspace/user_resource.json",
                     "type": "object",
-                    "title": "My User Resource Template Custom Parameters",
-                    "description": "These parameters are specific to my user resource template",
+                    "title": "My User Resource Template",
+                    "description": "These is a test user resource template schema",
                     "required": [],
                     "properties": {}
                 }
diff --git a/api_app/models/schemas/workspace_service_template.py b/api_app/models/schemas/workspace_service_template.py
--- a/api_app/models/schemas/workspace_service_template.py
+++ b/api_app/models/schemas/workspace_service_template.py
@@ -46,8 +46,8 @@ class Config:
                     "$schema": "http://json-schema.org/draft-07/schema",
                     "$id": "https://github.com/microsoft/AzureTRE/templates/workspaces/myworkspace/workspace_service.json",
                     "type": "object",
-                    "title": "My Workspace Service Template Custom Parameters",
-                    "description": "These parameters are specific to my workspace service template",
+                    "title": "My Workspace Service Template",
+                    "description": "These is a test workspace service resource template schema",
                     "required": [],
                     "properties": {}
                 }
diff --git a/api_app/models/schemas/workspace_template.py b/api_app/models/schemas/workspace_template.py
--- a/api_app/models/schemas/workspace_template.py
+++ b/api_app/models/schemas/workspace_template.py
@@ -44,8 +44,8 @@ class Config:
                     "$schema": "http://json-schema.org/draft-07/schema",
                     "$id": "https://github.com/microsoft/AzureTRE/templates/workspaces/myworkspace/workspace.json",
                     "type": "object",
-                    "title": "My Workspace Template Custom Parameters",
-                    "description": "These parameters are specific to my workspace template",
+                    "title": "My Workspace Template",
+                    "description": "This is a test workspace template schema",
                     "required": [
                         "vm_size",
                         "no_of_vms"


Test patch:
diff --git a/api_app/tests_ma/conftest.py b/api_app/tests_ma/conftest.py
--- a/api_app/tests_ma/conftest.py
+++ b/api_app/tests_ma/conftest.py
@@ -17,8 +17,8 @@ def input_workspace_template():
             "$schema": "http://json-schema.org/draft-07/schema",
             "$id": "https://github.com/microsoft/AzureTRE/templates/workspaces/myworkspace/workspace.json",
             "type": "object",
-            "title": "My Workspace Template Custom Parameters",
-            "description": "These parameters are specific to my workspace template",
+            "title": "My Workspace Template",
+            "description": "This is a test workspace template schema.",
             "required": [],
             "properties": {}
         })
@@ -34,8 +34,8 @@ def input_workspace_service_template():
             "$schema": "http://json-schema.org/draft-07/schema",
             "$id": "https://github.com/microsoft/AzureTRE/templates/workspaces/myworkspace/workspace_service.json",
             "type": "object",
-            "title": "My Workspace Service Template Custom Parameters",
-            "description": "These parameters are specific to my workspace service template",
+            "title": "My Workspace Service Template",
+            "description": "This is a test workspace service template schema.",
             "required": [],
             "properties": {}
         })
@@ -51,8 +51,8 @@ def input_user_resource_template():
             "$schema": "http://json-schema.org/draft-07/schema",
             "$id": "https://github.com/microsoft/AzureTRE/templates/workspaces/myworkspace/user_resource.json",
             "type": "object",
-            "title": "My User Resource Template Custom Parameters",
-            "description": "These parameters are specific to my user resource template",
+            "title": "My User Resource Template",
+            "description": "These is a test user resource template schema",
             "required": [],
             "properties": {}
         })