Skip to content

Commit

Permalink
Add json dataset (#6915)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnxzq authored and erich-wang committed Aug 15, 2019
1 parent 61552db commit 3df6932
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,43 @@
"required": [
"location"
]
},
"JsonDataset": {
"x-ms-discriminator-value": "Json",
"description": "Json dataset.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Dataset"
}
],
"properties": {
"typeProperties": {
"description": "Json dataset properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/JsonDatasetTypeProperties"
}
}
},
"JsonDatasetTypeProperties": {
"description": "Json dataset properties.",
"properties": {
"location": {
"$ref": "#/definitions/DatasetLocation",
"description": "The location of the json data storage."
},
"encodingName": {
"type": "object",
"description": "The code page name of the preferred encoding. If not specified, the default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string)."
},
"compression": {
"description": "The data compression method used for the json dataset.",
"$ref": "#/definitions/DatasetCompression"
}
},
"required": [
"location"
]
},
"BinaryDataset": {
"x-ms-discriminator-value": "Binary",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,29 @@
"required": [
"fileExtension"
]
},
"JsonWriteSettings": {
"description": "Json write settings.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/FormatWriteSettings"
}
],
"properties": {
"filePattern": {
"description": "File pattern of JSON. This setting controls the way a collection of JSON objects will be treated. The default value is 'setOfObjects'. It is case-sensitive.",
"type": "string",
"enum": [
"setOfObjects",
"arrayOfObjects"
],
"x-ms-enum": {
"name": "JsonWriteFilePattern",
"modelAsString": true
}
}
}
},
"AvroSource": {
"description": "A copy activity Avro source.",
Expand Down Expand Up @@ -724,6 +747,21 @@
"description": "DelimitedText format settings."
}
}
},
"JsonSource": {
"description": "A copy activity Json source.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySource"
}
],
"properties": {
"storeSettings": {
"$ref": "#/definitions/StoreReadSettings",
"description": "Json store settings."
}
}
},
"DelimitedTextSink": {
"description": "A copy activity DelimitedText sink.",
Expand All @@ -743,6 +781,25 @@
"description": "DelimitedText format settings."
}
}
},
"JsonSink": {
"description": "A copy activity Json sink.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySink"
}
],
"properties": {
"storeSettings": {
"$ref": "#/definitions/StoreWriteSettings",
"description": "Json store settings."
},
"formatSettings": {
"$ref": "#/definitions/JsonWriteSettings",
"description": "Json format settings."
}
}
},
"CopyActivity": {
"x-ms-discriminator-value": "Copy",
Expand Down

0 comments on commit 3df6932

Please sign in to comment.