You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
conststringexpectedOkDescription="The weather forecast for the next 5 days.";
338
+
339
+
varapiDescription=GetApiDescription([ProducesResponseType<GenericClass<TimeSpan>>(StatusCodes.Status200OK,Description="The weather forecast for the next 5 days.")]
conststringexpectedOkDescription="The weather forecast for the next 5 days.";
357
+
358
+
varapiDescription=GetApiDescription([ProducesResponseType<GenericClass<TimeSpan>>(StatusCodes.Status200OK,Description="The weather forecast for the next 5 days.")]
conststringexpectedOkDescription="The weather forecast for the next 5 days.";
376
+
377
+
varapiDescription=GetApiDescription([ProducesResponseType<IEnumerable<TimeSpan>>(StatusCodes.Status200OK,Description="The weather forecast for the next 5 days.")]
Assert.Equal(typeof(List<TimeSpan>),okResponseType.Type);// We use List as the inferred type has higher priority than those set by metadata (attributes)
conststringexpectedOkDescription="The weather forecast for the next 5 days.";
395
+
396
+
varapiDescription=GetApiDescription([ProducesResponseType<IEnumerable<TimeSpan>>(StatusCodes.Status200OK,Description="The weather forecast for the next 5 days.")]
Assert.Equal(typeof(List<TimeSpan>),okResponseType.Type);// We use List as the inferred type has higher priority than those set by metadata (attributes)
0 commit comments