Skip to content

Commit

Permalink
Merge branch 'release/v.1.10.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Morasiu committed Nov 15, 2024
2 parents 2f95acf + 94c9583 commit 02f05c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.10.1] - 2024-11-15
### Fixed
- Issue #22 - NullReferenceException when binding empty JSON body. Thanks @cloviscoli!

## [1.10.0] - 2024-10-22
### Added
- Support for multiple FromJson attributes in one wrapper class. Thanks @ArcKos00!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void Apply(OpenApiOperation operation, OperationFilterContext context)
foreach (var descriptor in descriptors) {
descriptor.Name = GetParameterName(descriptor.Name);

var mediaType = operation.RequestBody.Content.First().Value;
var mediaType = operation.RequestBody?.Content.First().Value;
HandleFromJsonAttribute(mediaType, context, descriptor);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<FileVersion>0.0.0.0</FileVersion>
<RepositoryType>git</RepositoryType>
<PackageVersion>1.10.0</PackageVersion>
<PackageVersion>1.10.1</PackageVersion>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>true</IsPackable>
</PropertyGroup>

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />

<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.7" />
<PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="7.0.3" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.3.2" />
Expand Down

0 comments on commit 02f05c4

Please sign in to comment.