@@ -587,43 +587,43 @@ public bool AddComponent<T>(string id, T componentToRegister)
587
587
Components ??= new ( ) ;
588
588
switch ( componentToRegister )
589
589
{
590
- case OpenApiSchema openApiSchema :
590
+ case IOpenApiSchema openApiSchema :
591
591
Components . Schemas ??= new Dictionary < string , IOpenApiSchema > ( ) ;
592
592
Components . Schemas . Add ( id , openApiSchema ) ;
593
593
break ;
594
- case OpenApiParameter openApiParameter :
594
+ case IOpenApiParameter openApiParameter :
595
595
Components . Parameters ??= new Dictionary < string , IOpenApiParameter > ( ) ;
596
596
Components . Parameters . Add ( id , openApiParameter ) ;
597
597
break ;
598
- case OpenApiResponse openApiResponse :
598
+ case IOpenApiResponse openApiResponse :
599
599
Components . Responses ??= new Dictionary < string , IOpenApiResponse > ( ) ;
600
600
Components . Responses . Add ( id , openApiResponse ) ;
601
601
break ;
602
- case OpenApiRequestBody openApiRequestBody :
602
+ case IOpenApiRequestBody openApiRequestBody :
603
603
Components . RequestBodies ??= new Dictionary < string , IOpenApiRequestBody > ( ) ;
604
604
Components . RequestBodies . Add ( id , openApiRequestBody ) ;
605
605
break ;
606
- case OpenApiLink openApiLink :
606
+ case IOpenApiLink openApiLink :
607
607
Components . Links ??= new Dictionary < string , IOpenApiLink > ( ) ;
608
608
Components . Links . Add ( id , openApiLink ) ;
609
609
break ;
610
- case OpenApiCallback openApiCallback :
610
+ case IOpenApiCallback openApiCallback :
611
611
Components . Callbacks ??= new Dictionary < string , IOpenApiCallback > ( ) ;
612
612
Components . Callbacks . Add ( id , openApiCallback ) ;
613
613
break ;
614
- case OpenApiPathItem openApiPathItem :
614
+ case IOpenApiPathItem openApiPathItem :
615
615
Components . PathItems ??= new Dictionary < string , IOpenApiPathItem > ( ) ;
616
616
Components . PathItems . Add ( id , openApiPathItem ) ;
617
617
break ;
618
- case OpenApiExample openApiExample :
618
+ case IOpenApiExample openApiExample :
619
619
Components . Examples ??= new Dictionary < string , IOpenApiExample > ( ) ;
620
620
Components . Examples . Add ( id , openApiExample ) ;
621
621
break ;
622
- case OpenApiHeader openApiHeader :
622
+ case IOpenApiHeader openApiHeader :
623
623
Components . Headers ??= new Dictionary < string , IOpenApiHeader > ( ) ;
624
624
Components . Headers . Add ( id , openApiHeader ) ;
625
625
break ;
626
- case OpenApiSecurityScheme openApiSecurityScheme :
626
+ case IOpenApiSecurityScheme openApiSecurityScheme :
627
627
Components . SecuritySchemes ??= new Dictionary < string , IOpenApiSecurityScheme > ( ) ;
628
628
Components . SecuritySchemes . Add ( id , openApiSecurityScheme ) ;
629
629
break ;
0 commit comments