File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
src/OpenApi/src/Services/Schemas Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1313using System . Text . Json . Serialization . Metadata ;
1414using Microsoft . AspNetCore . Http ;
1515using Microsoft . AspNetCore . Http . Json ;
16+ using Microsoft . AspNetCore . Mvc ;
1617using Microsoft . AspNetCore . Mvc . ApiExplorer ;
1718using Microsoft . AspNetCore . Mvc . Infrastructure ;
1819using Microsoft . Extensions . DependencyInjection ;
@@ -121,6 +122,28 @@ internal sealed class OpenApiSchemaService(
121122 }
122123 } ;
123124
125+ private static string GetBinarySchemaId ( Type type )
126+ {
127+ if ( type == typeof ( IFormFile ) )
128+ {
129+ return "IFormFile" ;
130+ }
131+ else if ( type == typeof ( Stream ) )
132+ {
133+ return "Stream" ;
134+ }
135+ else if ( type == typeof ( PipeReader ) )
136+ {
137+ return "PipeReader" ;
138+ }
139+ else if ( type == typeof ( FileContentResult ) )
140+ {
141+ return "FileContentResult" ;
142+ }
143+
144+ return type . Name ;
145+ }
146+
124147 private static JsonObject CreateSchemaForJsonPatch ( )
125148 {
126149 var addReplaceTest = new JsonObject ( )
You can’t perform that action at this time.
0 commit comments