2222using Microsoft . OData . Edm . Csdl ;
2323using Microsoft . OpenApi . ApiManifest ;
2424using Microsoft . OpenApi . ApiManifest . OpenAI ;
25+ using Microsoft . OpenApi . ApiManifest . OpenAI . Authentication ;
2526using Microsoft . OpenApi . Extensions ;
2627using Microsoft . OpenApi . Hidi . Extensions ;
2728using Microsoft . OpenApi . Hidi . Formatters ;
@@ -85,7 +86,7 @@ public static async Task TransformOpenApiDocumentAsync(HidiOptions options, ILog
8586 var apiDependency = await FindApiDependencyAsync ( options . FilterOptions . FilterByApiManifest , logger , cancellationToken ) . ConfigureAwait ( false ) ;
8687 if ( apiDependency != null )
8788 {
88- options . OpenApi = apiDependency . ApiDescripionUrl ;
89+ options . OpenApi = apiDependency . ApiDescriptionUrl ;
8990 }
9091
9192 // If Postman Collection is provided, load it
@@ -745,7 +746,7 @@ internal static async Task PluginManifestAsync(HidiOptions options, ILogger logg
745746 var apiDependency = await FindApiDependencyAsync ( options . FilterOptions ? . FilterByApiManifest , logger , cancellationToken ) . ConfigureAwait ( false ) ;
746747 if ( apiDependency != null )
747748 {
748- options . OpenApi = apiDependency . ApiDescripionUrl ;
749+ options . OpenApi = apiDependency . ApiDescriptionUrl ;
749750 }
750751
751752 // Load OpenAPI document
@@ -771,15 +772,11 @@ internal static async Task PluginManifestAsync(HidiOptions options, ILogger logg
771772 WriteOpenApi ( options , OpenApiFormat . Json , OpenApiSpecVersion . OpenApi3_1 , document , logger ) ;
772773
773774 // Create OpenAIPluginManifest from ApiDependency and OpenAPI document
774- var manifest = new OpenAIPluginManifest
775+ var manifest = new OpenAIPluginManifest ( document . Info ? . Title ?? "Title" , document . Info ? . Title ?? "Title" , "https://go.microsoft.com/fwlink/?LinkID=288890" , document . Info ? . Contact ? . Email ?? "[email protected] " , document . Info ? . License ? . Url . ToString ( ) ?? "https://placeholderlicenseurl.com" ) 775776 {
776- NameForHuman = document . Info . Title ,
777- DescriptionForHuman = document . Info . Description ,
778- Api = new ( )
779- {
780- Type = "openapi" ,
781- Url = "./openapi.json"
782- }
777+ DescriptionForHuman = document . Info ? . Description ?? "Description placeholder" ,
778+ Api = new ( "openapi" , "./openapi.json" ) ,
779+ Auth = new ManifestNoAuth ( ) ,
783780 } ;
784781 manifest . NameForModel = manifest . NameForHuman ;
785782 manifest . DescriptionForModel = manifest . DescriptionForHuman ;
0 commit comments