forked from domaindrivendev/Swashbuckle.AspNetCore
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support [SwaggerIgnore] with [FromForm] requests (domaindrivendev#2928)
* Add possibility to Ignore properties in FromForm Request with SwaggerIgnore attribute * Refactor the logic * Added UnitTests --------- Co-authored-by: Javier García de la Noceda Argüelles <[email protected]>
- Loading branch information
1 parent
44005e6
commit c1ee0e4
Showing
5 changed files
with
122 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
.../Swashbuckle.AspNetCore.SwaggerGen.Test/Fixtures/FakeICompositeMetadataDetailsProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using Microsoft.AspNetCore.Mvc.ModelBinding.Metadata; | ||
|
||
namespace Swashbuckle.AspNetCore.SwaggerGen.Test.Fixtures | ||
{ | ||
internal class FakeICompositeMetadataDetailsProvider : ICompositeMetadataDetailsProvider | ||
{ | ||
public void CreateBindingMetadata(BindingMetadataProviderContext context) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public void CreateDisplayMetadata(DisplayMetadataProviderContext context) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public void CreateValidationMetadata(ValidationMetadataProviderContext context) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters