File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -148,11 +148,13 @@ public static EndPoint FromSchema(OperationContext operation)
148148 Path : preparedPath ,
149149 RequestMediaType : requestMediaType ,
150150 Parameters : parameters . ToImmutableArray ( ) ,
151- SuccessResponse : responses . Any ( x => x . Is2XX )
152- ? responses . First ( x => x . Is2XX )
153- : responses . Any ( x => x . IsDefault )
154- ? responses . First ( x => x . IsDefault )
155- : EndPointResponse . Default ,
151+ SuccessResponse : responses . Any ( x => x . Is2XX && ! string . IsNullOrWhiteSpace ( x . Type . CSharpTypeRaw ) )
152+ ? responses . First ( x => x . Is2XX && ! string . IsNullOrWhiteSpace ( x . Type . CSharpTypeRaw ) )
153+ : responses . Any ( x => x . Is2XX )
154+ ? responses . First ( x => x . Is2XX )
155+ : responses . Any ( x => x . IsDefault )
156+ ? responses . First ( x => x . IsDefault )
157+ : EndPointResponse . Default ,
156158 ErrorResponses : responses . Where ( x => ! x . Is2XX ) . ToImmutableArray ( ) ,
157159 QueryParameters : queryParameters . ToImmutableArray ( ) ,
158160 Authorizations : authorizations ,
You can’t perform that action at this time.
0 commit comments