From 97cefc844971fe445d9a294cf68e2adfd63852ac Mon Sep 17 00:00:00 2001 From: wangbwn <69622111+wangbwn@users.noreply.github.com> Date: Wed, 17 Jan 2024 16:34:25 +0800 Subject: [PATCH] Fix headers and schema definition (#27180) Co-authored-by: Bo Wang <v-bw@microsoft.com> --- .../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 0ed042885d2e..095719aeb127 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 76db543b796a..49ab74d90ab2 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 @@ -7133,8 +7133,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", @@ -8171,8 +8174,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", @@ -8237,8 +8243,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",