Skip to content

Commit 6b1c977

Browse files
authored
Merge pull request #81 from SQLPlayer/issue-80
Fixed JSON files corruption for very deeply contained nodes #80
2 parents 51b9c1a + 46d7891 commit 6b1c977

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Kamil Nowinski @ SQLPlayer.net
3+
Copyright (c) 2020-2021 Kamil Nowinski @ SQLPlayer.net
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

azure.datafactory.tools.psd1

0 Bytes
Binary file not shown.

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [0.50.0] - 2021-01-20
8+
### Fixed
9+
* JSON file corrupted when contained object is located deeper than 15 nodes ([[#80](https://github.com/SQLPlayer/azure.datafactory.tools/issues/80)])
10+
711
## [0.40.0] - 2021-01-13
812
### Added
913
* New function: Test-AdfCode [#62](https://github.com/SQLPlayer/azure.datafactory.tools/issues/62)]

private/Save-AdfObjectAsFile.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function Save-AdfObjectAsFile {
77
$newFileName = Join-Path $obj.Adf.Location "$($obj.Type)\~$($obj.Name).json"
88
Write-Debug "Writing file: $newFileName"
99

10-
$output = ($obj.Body | ConvertTo-Json -Compress:$true -Depth 15)
10+
$output = ($obj.Body | ConvertTo-Json -Compress:$true -Depth 100)
1111
$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
1212
[IO.File]::WriteAllLines($newFileName, $output, $Utf8NoBomEncoding)
1313

0 commit comments

Comments
 (0)