From c38440d875659bf58dc515e037a7bde81c31a816 Mon Sep 17 00:00:00 2001 From: Bo Wang Date: Mon, 25 Dec 2023 11:15:46 +0800 Subject: [PATCH] Fix headers and schema definition --- .../2018-06-01/entityTypes/Dataset.json | 2 +- .../2018-06-01/entityTypes/Pipeline.json | 21 +++++++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json index 4e21c29e8722..e8091e577224 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json @@ -38,7 +38,7 @@ }, "schema": { "type": "object", - "x-ms-format": "dfe-object", + "x-ms-format": "dfe-list-generic", "x-ms-format-element-type": "DatasetSchemaDataElement", "description": "Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement." }, diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json index 775663a76219..a41a20fbd4df 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json @@ -7007,8 +7007,11 @@ }, "headers": { "type": "object", - "x-ms-format": "dfe-key-value-pairs", - "description": "Represents the headers that will be sent to the request. For example, to set the language and type on a request: \"headers\" : { \"Accept-Language\": \"en-us\", \"Content-Type\": \"application/json\" }. Type: dictionary (or Expression with resultType dictionary)." + "description": "Represents the headers that will be sent to the request. For example, to set the language and type on a request: \"headers\" : { \"Accept-Language\": \"en-us\", \"Content-Type\": \"application/json\" }. Type: string (or Expression with resultType string).", + "additionalProperties": { + "type": "string", + "x-ms-format": "dfe-string" + } }, "body": { "type": "object", @@ -8045,8 +8048,11 @@ }, "headers": { "type": "object", - "x-ms-format": "dfe-key-value-pairs", - "description": "Represents the headers that will be sent to the request. For example, to set the language and type on a request: \"headers\" : { \"Accept-Language\": \"en-us\", \"Content-Type\": \"application/json\" }. Type: dictionary (or Expression with resultType dictionary)." + "description": "Represents the headers that will be sent to the request. For example, to set the language and type on a request: \"headers\" : { \"Accept-Language\": \"en-us\", \"Content-Type\": \"application/json\" }. Type: string (or Expression with resultType string).", + "additionalProperties": { + "type": "string", + "x-ms-format": "dfe-string" + } }, "body": { "type": "object", @@ -8111,8 +8117,11 @@ }, "headers": { "type": "object", - "x-ms-format": "dfe-key-value-pairs", - "description": "Represents the headers that will be sent to the request. For example, to set the language and type on a request: \"headers\" : { \"Accept-Language\": \"en-us\", \"Content-Type\": \"application/json\" }. Type: dictionary (or Expression with resultType dictionary)." + "description": "Represents the headers that will be sent to the request. For example, to set the language and type on a request: \"headers\" : { \"Accept-Language\": \"en-us\", \"Content-Type\": \"application/json\" }. Type: string (or Expression with resultType string).", + "additionalProperties": { + "type": "string", + "x-ms-format": "dfe-string" + } }, "body": { "type": "object",