Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter illegal header fields #2842

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into filter-illegal-header-fields
  • Loading branch information
keahpeters committed Apr 29, 2024
commit 35c3437a31a1c01cc53b27aa8b654fe1baca27dd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
Expand All @@ -8,8 +8,8 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Abstractions;
using Microsoft.AspNetCore.Mvc.ApiExplorer;
using Microsoft.AspNetCore.Mvc.Controllers;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Routing;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Models;
Expand Down Expand Up @@ -1549,7 +1549,7 @@
{
Name = "fileUpload", // Name of the parameter
Type = typeof(IFormFile), // Type of the parameter
ParameterDescriptor = new ControllerParameterDescriptor { ParameterInfo = parameterInfo }

Check failure on line 1552 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / code-ql

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1552 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / code-ql

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1552 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / code-ql

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1552 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / code-ql

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1552 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / windows-latest

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1552 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / windows-latest

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)
}
})
}
Expand Down Expand Up @@ -1583,13 +1583,13 @@
{
Name = "param1", // Name of the parameter
Type = typeof(string), // Type of the parameter
ParameterDescriptor = new ControllerParameterDescriptor { ParameterInfo = paraminfo }

Check failure on line 1586 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / code-ql

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1586 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / code-ql

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1586 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / code-ql

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1586 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / windows-latest

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1586 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / windows-latest

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)
},
new ApiParameterDescription
{
Name = "param2", // Name of the parameter
Type = typeof(IFormFile), // Type of the parameter
ParameterDescriptor = new ControllerParameterDescriptor { ParameterInfo = fileUploadParameterInfo }

Check failure on line 1592 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / code-ql

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1592 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / code-ql

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1592 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / code-ql

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1592 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / windows-latest

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1592 in test/Swashbuckle.AspNetCore.SwaggerGen.Test/SwaggerGenerator/SwaggerGeneratorTests.cs

View workflow job for this annotation

GitHub Actions / windows-latest

The type or namespace name 'ControllerParameterDescriptor' could not be found (are you missing a using directive or an assembly reference?)
}
})
}
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.