@@ -587,43 +587,43 @@ public bool AddComponent<T>(string id, T componentToRegister)
587587 Components ??= new ( ) ;
588588 switch ( componentToRegister )
589589 {
590- case OpenApiSchema openApiSchema :
590+ case IOpenApiSchema openApiSchema :
591591 Components . Schemas ??= new Dictionary < string , IOpenApiSchema > ( ) ;
592592 Components . Schemas . Add ( id , openApiSchema ) ;
593593 break ;
594- case OpenApiParameter openApiParameter :
594+ case IOpenApiParameter openApiParameter :
595595 Components . Parameters ??= new Dictionary < string , IOpenApiParameter > ( ) ;
596596 Components . Parameters . Add ( id , openApiParameter ) ;
597597 break ;
598- case OpenApiResponse openApiResponse :
598+ case IOpenApiResponse openApiResponse :
599599 Components . Responses ??= new Dictionary < string , IOpenApiResponse > ( ) ;
600600 Components . Responses . Add ( id , openApiResponse ) ;
601601 break ;
602- case OpenApiRequestBody openApiRequestBody :
602+ case IOpenApiRequestBody openApiRequestBody :
603603 Components . RequestBodies ??= new Dictionary < string , IOpenApiRequestBody > ( ) ;
604604 Components . RequestBodies . Add ( id , openApiRequestBody ) ;
605605 break ;
606- case OpenApiLink openApiLink :
606+ case IOpenApiLink openApiLink :
607607 Components . Links ??= new Dictionary < string , IOpenApiLink > ( ) ;
608608 Components . Links . Add ( id , openApiLink ) ;
609609 break ;
610- case OpenApiCallback openApiCallback :
610+ case IOpenApiCallback openApiCallback :
611611 Components . Callbacks ??= new Dictionary < string , IOpenApiCallback > ( ) ;
612612 Components . Callbacks . Add ( id , openApiCallback ) ;
613613 break ;
614- case OpenApiPathItem openApiPathItem :
614+ case IOpenApiPathItem openApiPathItem :
615615 Components . PathItems ??= new Dictionary < string , IOpenApiPathItem > ( ) ;
616616 Components . PathItems . Add ( id , openApiPathItem ) ;
617617 break ;
618- case OpenApiExample openApiExample :
618+ case IOpenApiExample openApiExample :
619619 Components . Examples ??= new Dictionary < string , IOpenApiExample > ( ) ;
620620 Components . Examples . Add ( id , openApiExample ) ;
621621 break ;
622- case OpenApiHeader openApiHeader :
622+ case IOpenApiHeader openApiHeader :
623623 Components . Headers ??= new Dictionary < string , IOpenApiHeader > ( ) ;
624624 Components . Headers . Add ( id , openApiHeader ) ;
625625 break ;
626- case OpenApiSecurityScheme openApiSecurityScheme :
626+ case IOpenApiSecurityScheme openApiSecurityScheme :
627627 Components . SecuritySchemes ??= new Dictionary < string , IOpenApiSecurityScheme > ( ) ;
628628 Components . SecuritySchemes . Add ( id , openApiSecurityScheme ) ;
629629 break ;
0 commit comments