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 ;
@@ -73,7 +74,7 @@ public static async Task TransformOpenApiDocumentAsync(HidiOptions options, ILog
7374 var apiDependency = await FindApiDependencyAsync ( options . FilterOptions . FilterByApiManifest , logger , cancellationToken ) . ConfigureAwait ( false ) ;
7475 if ( apiDependency != null )
7576 {
76- options . OpenApi = apiDependency . ApiDescripionUrl ;
77+ options . OpenApi = apiDependency . ApiDescriptionUrl ;
7778 }
7879
7980 // If Postman Collection is provided, load it
@@ -728,7 +729,7 @@ internal static async Task PluginManifestAsync(HidiOptions options, ILogger logg
728729 var apiDependency = await FindApiDependencyAsync ( options . FilterOptions ? . FilterByApiManifest , logger , cancellationToken ) . ConfigureAwait ( false ) ;
729730 if ( apiDependency != null )
730731 {
731- options . OpenApi = apiDependency . ApiDescripionUrl ;
732+ options . OpenApi = apiDependency . ApiDescriptionUrl ;
732733 }
733734
734735 // Load OpenAPI document
@@ -753,15 +754,11 @@ internal static async Task PluginManifestAsync(HidiOptions options, ILogger logg
753754 WriteOpenApi ( options , OpenApiFormat . Json , OpenApiSpecVersion . OpenApi3_0 , document , logger ) ;
754755
755756 // Create OpenAIPluginManifest from ApiDependency and OpenAPI document
756- var manifest = new OpenAIPluginManifest
757+ 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" ) 757758 {
758- NameForHuman = document . Info . Title ,
759- DescriptionForHuman = document . Info . Description ,
760- Api = new ( )
761- {
762- Type = "openapi" ,
763- Url = "./openapi.json"
764- }
759+ DescriptionForHuman = document . Info ? . Description ?? "Description placeholder" ,
760+ Api = new ( "openapi" , "./openapi.json" ) ,
761+ Auth = new ManifestNoAuth ( ) ,
765762 } ;
766763 manifest . NameForModel = manifest . NameForHuman ;
767764 manifest . DescriptionForModel = manifest . DescriptionForHuman ;
0 commit comments