Skip to content

Commit

Permalink
Fix in CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Jul 11, 2019
1 parent 1b9b917 commit 728d086
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions cli/Squidex.CLI/Squidex.CLI/Commands/DummyData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Squidex.CLI.Commands
{
[KeepCasing]
public sealed class DummyData : Dictionary<string, Dictionary<string, JToken>>
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license.
// ==========================================================================

using System;
using System.Collections.Generic;
using CsvHelper;
using Newtonsoft.Json;
Expand Down Expand Up @@ -45,6 +46,10 @@ public IEnumerable<DummyData> ReadAll(CsvReader csvReader)
SetValue(data, JToken.Parse($"\"{value}\""), field.Path);
}
}
else
{
throw new InvalidOperationException($"Cannot find field {field.Name} in CSV file. Please check the delimiters setting.");
}
}

yield return data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageIconUrl>https://raw.githubusercontent.com/Squidex/squidex/master/media/logo-squared.png</PackageIconUrl>
<PackageLicense>https://github.com/Squidex/squidex/blob/master/LICENSE.txt</PackageLicense>
<PackageProjectUrl>https://github.com/Squidex/squidex/</PackageProjectUrl>
<Version>2.10</Version>
<Version>3.0-beta1</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

Expand Down

0 comments on commit 728d086

Please sign in to comment.