Skip to content

Commit

Permalink
Merge pull request #198 from atc-net/feature/allow-use-object-set-CR0…
Browse files Browse the repository at this point in the history
…105-to-warning

Feature/allow use object set cr0105 to warning
  • Loading branch information
davidkallesen authored Jul 25, 2024
2 parents 0a18a46 + 0d5c50b commit 04b9367
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Atc" Version="2.0.495" />
<PackageReference Include="Atc.CodeDocumentation" Version="2.0.495" />
<PackageReference Include="Atc" Version="2.0.498" />
<PackageReference Include="Atc.CodeDocumentation" Version="2.0.498" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.10.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Atc" Version="2.0.495" />
<PackageReference Include="Atc.Console.Spectre" Version="2.0.495" />
<PackageReference Include="Atc" Version="2.0.498" />
<PackageReference Include="Atc.Console.Spectre" Version="2.0.498" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Atc" Version="2.0.495" />
<PackageReference Include="Atc" Version="2.0.498" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Atc" Version="2.0.495" />
<PackageReference Include="Atc.CodeDocumentation" Version="2.0.495" />
<PackageReference Include="Atc" Version="2.0.498" />
<PackageReference Include="Atc.CodeDocumentation" Version="2.0.498" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Atc" Version="2.0.495" />
<PackageReference Include="Atc" Version="2.0.498" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Atc" Version="2.0.495" />
<PackageReference Include="Atc.Rest" Version="2.0.495" />
<PackageReference Include="Atc" Version="2.0.498" />
<PackageReference Include="Atc.Rest" Version="2.0.498" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Atc" Version="2.0.495" />
<PackageReference Include="Atc.DotNet" Version="2.0.495" />
<PackageReference Include="Atc.OpenApi" Version="2.0.495" />
<PackageReference Include="Atc" Version="2.0.498" />
<PackageReference Include="Atc.DotNet" Version="2.0.498" />
<PackageReference Include="Atc.OpenApi" Version="2.0.498" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Atc" Version="2.0.495" />
<PackageReference Include="Atc" Version="2.0.498" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Atc" Version="2.0.495" />
<PackageReference Include="Atc.CodeDocumentation" Version="2.0.495" />
<PackageReference Include="Atc.OpenApi" Version="2.0.495" />
<PackageReference Include="Atc" Version="2.0.498" />
<PackageReference Include="Atc.CodeDocumentation" Version="2.0.498" />
<PackageReference Include="Atc.OpenApi" Version="2.0.498" />
<PackageReference Include="Microsoft.OpenApi" Version="1.6.15" />
<PackageReference Include="Microsoft.OpenApi.Readers" Version="1.6.15" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ private void ValidateSchemas(
!value.HasItemsWithSimpleDataType() &&
!value.HasItemsWithFormatTypeBinary())
{
logItems.Add(logItemFactory.Create(logCategory, ValidationRuleNameConstants.Schema05, $"Implicit object definition on property '{key}' in array type '{schema.Reference.ReferenceV3}' is not supported."));
logItems.Add(validationOptions.StrictMode
? logItemFactory.Create(LogCategoryType.Warning, ValidationRuleNameConstants.Schema05, $"Implicit object definition on property '{key}' in array type '{schema.Reference.ReferenceV3}' is only a good for JSON data.")
: logItemFactory.Create(LogCategoryType.Error, ValidationRuleNameConstants.Schema05, $"Implicit object definition on property '{key}' in array type '{schema.Reference.ReferenceV3}' is not supported."));
}
}

Expand Down
10 changes: 5 additions & 5 deletions src/Atc.Rest.ApiGenerator/Atc.Rest.ApiGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Atc" Version="2.0.495" />
<PackageReference Include="Atc.CodeAnalysis.CSharp" Version="2.0.495" />
<PackageReference Include="Atc.Console.Spectre" Version="2.0.495" />
<PackageReference Include="Atc.DotNet" Version="2.0.495" />
<PackageReference Include="Atc.OpenApi" Version="2.0.495" />
<PackageReference Include="Atc" Version="2.0.498" />
<PackageReference Include="Atc.CodeAnalysis.CSharp" Version="2.0.498" />
<PackageReference Include="Atc.Console.Spectre" Version="2.0.498" />
<PackageReference Include="Atc.DotNet" Version="2.0.498" />
<PackageReference Include="Atc.OpenApi" Version="2.0.498" />
<PackageReference Include="Atc.Rest.Client" Version="1.0.79" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.10.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
Expand Down Expand Up @@ -51,11 +51,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Atc.DotNet" Version="2.0.495" />
<PackageReference Include="Atc.DotNet" Version="2.0.498" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
<PackageReference Include="Atc.CodeDocumentation" Version="2.0.495" />
<PackageReference Include="Atc.XUnit" Version="2.0.495" />
<PackageReference Include="Atc.CodeDocumentation" Version="2.0.498" />
<PackageReference Include="Atc.XUnit" Version="2.0.498" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Verify" Version="17.10.2" />
<PackageReference Include="Verify.Xunit" Version="17.10.2" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Atc.XUnit" Version="2.0.495" />
<PackageReference Include="Atc.XUnit" Version="2.0.498" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
Expand Down

0 comments on commit 04b9367

Please sign in to comment.