From 3c5135f8325eaf79be7b137cae363bdcba028c17 Mon Sep 17 00:00:00 2001 From: Wan Yang Date: Thu, 2 Dec 2021 05:57:27 +0800 Subject: [PATCH] [Synapse] Fix for parameter in Notebook activity (#16852) * fix for notebook activity parameter * remove required property --- .../2020-12-01/entityTypes/Pipeline.json | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json b/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json index 70acb77317b4..c6ff16345cf3 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json @@ -3795,6 +3795,35 @@ "modelAsString": true } }, + "NotebookParameter": { + "description": "Notebook parameter.", + "type": "object", + "properties": { + "value": { + "type": "object", + "description": "Notebook parameter value. Type: string (or Expression with resultType string).", + "x-nullable": true + }, + "type": { + "description": "Notebook parameter type.", + "$ref": "#/definitions/NotebookParameterType" + } + } + }, + "NotebookParameterType": { + "description": "Notebook parameter type.", + "type": "string", + "enum": [ + "string", + "int", + "float", + "bool" + ], + "x-ms-enum": { + "name": "NotebookParameterType", + "modelAsString": true + } + }, "CopySink": { "discriminator": "type", "description": "A copy activity sink.", @@ -7181,7 +7210,10 @@ }, "parameters": { "description": "Notebook parameters.", - "$ref": "../artifacts.json#/definitions/ParameterValueSpecification" + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/NotebookParameter" + } } }, "required": [