Skip to content

Commit

Permalink
Fixing id parameter type
Browse files Browse the repository at this point in the history
  • Loading branch information
Edgar Mesquita authored and Edgar Mesquita committed Sep 24, 2023
1 parent 5c7de38 commit 9432a85
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ private static string GetPattern<TEntity>(bool withId = false, Type? referenceTy
var pattern = $"/{prefix}";
if (referenceType != null)
{
pattern = $"/{referenceType.Name.Pluralize().Camelize()}/{{referenceId:int}}{pattern}";
pattern = $"/{referenceType.Name.Pluralize().Camelize()}/{{referenceId}}{pattern}";
}

if (withId) pattern = $"{pattern}/{{id:int}}";
if (withId) pattern = $"{pattern}/{{id}}";
return pattern;
}

Expand Down
13 changes: 8 additions & 5 deletions src/eQuantic.Core.Api.Crud/eQuantic.Core.Api.Crud.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<Authors>eQuantic Systems</Authors>
<RootNamespace>eQuantic.Core.Api.Crud</RootNamespace>
<AssemblyTitle>eQuantic.Core.Api.Crud</AssemblyTitle>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<FileVersion>1.1.0.0</FileVersion>
<Version>1.1.0.0</Version>
<TargetFramework>net7.0</TargetFramework>
<AssemblyVersion>1.1.1.0</AssemblyVersion>
<FileVersion>1.1.1.0</FileVersion>
<Version>1.1.1.0</Version>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>

<PackageId>eQuantic.Core.Api.Crud</PackageId>
<PackageTags>eQuantic;Core;API;CRUD;Library</PackageTags>
Expand All @@ -35,9 +35,12 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0' ">
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.10" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.0-rc.1.23421.29" />
</ItemGroup>

<ItemGroup>
<None Include="Icon.png" Pack="true" PackagePath="Icon.png" />
Expand Down
8 changes: 4 additions & 4 deletions src/eQuantic.Core.Api/eQuantic.Core.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<Authors>eQuantic Systems</Authors>
<RootNamespace>eQuantic.Core.Api</RootNamespace>
<AssemblyTitle>eQuantic.Core.Api</AssemblyTitle>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<FileVersion>1.1.0.0</FileVersion>
<Version>1.1.0.0</Version>
<TargetFramework>net7.0</TargetFramework>
<AssemblyVersion>1.1.1.0</AssemblyVersion>
<FileVersion>1.1.1.0</FileVersion>
<Version>1.1.1.0</Version>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>

<PackageId>eQuantic.Core.Api</PackageId>
<PackageTags>eQuantic;Core;API;Library</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<Authors>eQuantic Systems</Authors>
<RootNamespace>eQuantic.Core.Application.Crud</RootNamespace>
<AssemblyTitle>eQuantic.Core.Application.Crud</AssemblyTitle>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<FileVersion>1.1.0.0</FileVersion>
<Version>1.1.0.0</Version>
<TargetFrameworks>netstandard2.1;net7.0</TargetFrameworks>
<AssemblyVersion>1.1.1.0</AssemblyVersion>
<FileVersion>1.1.1.0</FileVersion>
<Version>1.1.1.0</Version>
<TargetFrameworks>netstandard2.1;net7.0;net8.0</TargetFrameworks>

<PackageId>eQuantic.Core.Application.Crud</PackageId>
<PackageTags>eQuantic;Core;Application;CRUD;Library</PackageTags>
Expand Down
12 changes: 8 additions & 4 deletions src/eQuantic.Core.Application/eQuantic.Core.Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<Authors>eQuantic Systems</Authors>
<RootNamespace>eQuantic.Core.Application</RootNamespace>
<AssemblyTitle>eQuantic.Core.Application</AssemblyTitle>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<FileVersion>1.1.0.0</FileVersion>
<Version>1.1.0.0</Version>
<TargetFrameworks>netstandard2.1;net7.0</TargetFrameworks>
<AssemblyVersion>1.1.1.0</AssemblyVersion>
<FileVersion>1.1.1.0</FileVersion>
<Version>1.1.1.0</Version>
<TargetFrameworks>netstandard2.1;net7.0;net8.0</TargetFrameworks>

<PackageId>eQuantic.Core.Application</PackageId>
<PackageTags>eQuantic;Core;Application;Library</PackageTags>
Expand Down Expand Up @@ -46,6 +46,10 @@
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0' ">
<PackageReference Include="Lamar" Version="12.0.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
<PackageReference Include="Lamar" Version="12.0.0" />
</ItemGroup>

<ItemGroup>
<None Include="Icon.png" Pack="true" PackagePath="Icon.png" />
Expand Down

0 comments on commit 9432a85

Please sign in to comment.