Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminAbt committed Jun 12, 2019
1 parent 95b2210 commit 80af31a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/ApiSdk.Mapper/PersonApiMapper.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using BenjaminAbt.ModernAPIDevelopment.ApiSdk.Models;
using BenjaminAbt.ModernAPIDevelopment.ApiSdk.Models.Authors;
using BenjaminAbt.ModernAPIDevelopment.Common.Models;

Expand Down
4 changes: 1 addition & 3 deletions src/ApiSdk/ApiSdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
</PropertyGroup>

<ItemGroup>
<Reference Include="System.ComponentModel.Annotations">
<HintPath>..\..\..\..\..\..\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.1.0\ref\netcoreapp2.1\System.ComponentModel.Annotations.dll</HintPath>
</Reference>
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/ApiSdk/Models/Books/BookAddModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class BookAddModel : IValidatableObject
public double? Price { get; set; }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
if (String.IsNullOrEmpty(Name)) yield return new ValidationResult($"{nameof(Name)} is missing.", new[] { nameof(Name) });
if (string.IsNullOrEmpty(Name)) yield return new ValidationResult($"{nameof(Name)} is missing.", new[] { nameof(Name) });
if (Price == null)
{
yield return new ValidationResult($"{nameof(Price)} is missing.", new[] { nameof(Price) });
Expand Down
4 changes: 3 additions & 1 deletion src/ODataApi/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
private static IEdmModel GetEdmModel()
{
ODataConventionModelBuilder builder = new ODataConventionModelBuilder();
builder.EnableLowerCamelCase(); // WTF


builder.EnableLowerCamelCase(); // WTF, BUG?

builder.EntitySet<AuthorApiViewModel>("Authors"); // CAMELCASE!
builder.EntitySet<BookApiViewModel>("Books");// CAMELCASE!
Expand Down

0 comments on commit 80af31a

Please sign in to comment.