зеркало из https://github.com/microsoft/kiota.git
Fix: remove encoding from human name (#5373)
This commit is contained in:
Родитель
7a39ecff15
Коммит
0085a17664
|
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Fixed a bug where collection/array of primitive types members for union/intersection types would be ignored. [#5283](https://github.com/microsoft/kiota/issues/5283)
|
||||
- Fixed a when generating a plugin when only an operation is selected in the root node in the extension. [#5300](https://github.com/microsoft/kiota/issues/5300)
|
||||
- Fixed a bug where function descriptions in plugin manifest defaults to path summary instead of description[#5301](https://github.com/microsoft/kiota/issues/5301)
|
||||
- Fixed a bug where the description special characters are encoded. [5286](https://github.com/microsoft/kiota/issues/5286)
|
||||
|
||||
## [1.18.0] - 2024-09-05
|
||||
|
||||
|
|
|
@ -260,7 +260,7 @@ public partial class PluginsGenerationService
|
|||
private PluginManifestDocument GetManifestDocument(string openApiDocumentPath)
|
||||
{
|
||||
var (runtimes, functions, conversationStarters) = GetRuntimesFunctionsAndConversationStartersFromTree(OAIDocument, Configuration.PluginAuthInformation, TreeNode, openApiDocumentPath);
|
||||
var descriptionForHuman = OAIDocument.Info?.Description.CleanupXMLString() is string d && !string.IsNullOrEmpty(d) ? d : $"Description for {OAIDocument.Info?.Title.CleanupXMLString()}";
|
||||
var descriptionForHuman = OAIDocument.Info?.Description is string d && !string.IsNullOrEmpty(d) ? d : $"Description for {OAIDocument.Info?.Title}";
|
||||
var manifestInfo = ExtractInfoFromDocument(OAIDocument.Info);
|
||||
var pluginManifestDocument = new PluginManifestDocument
|
||||
{
|
||||
|
|
|
@ -44,6 +44,7 @@ public sealed class PluginsGenerationServiceTests : IDisposable
|
|||
info:
|
||||
title: test
|
||||
version: 1.0
|
||||
description: test description we've created
|
||||
servers:
|
||||
- url: http://localhost/
|
||||
description: There's no place like home
|
||||
|
@ -115,6 +116,7 @@ paths:
|
|||
Assert.True(resultingManifest.Document.Capabilities.ConversationStarters[1].Text.Length <= 50);// Conversation starters are limited to 50 characters
|
||||
Assert.Equal(expectedPluginName, resultingManifest.Document.Namespace);// namespace is cleaned up.
|
||||
Assert.Empty(resultingManifest.Problems);// no problems are expected with names
|
||||
Assert.Equal("test description we've created", resultingManifest.Document.DescriptionForHuman);// description is pulled from info
|
||||
}
|
||||
private const string ManifestFileName = "client-apiplugin.json";
|
||||
private const string OpenAIPluginFileName = "openai-plugins.json";
|
||||
|
|
Загрузка…
Ссылка в новой задаче