Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

using YamlDotNet.Serialization;

namespace Elastic.Documentation.Services.Changelog;

/// <summary>
Expand All @@ -22,6 +24,7 @@ public class ChangelogData
public string? Description { get; set; }
public string? Impact { get; set; }
public string? Action { get; set; }
[YamlMember(Alias = "feature-id", ApplyNamingConventions = false)]
public string? FeatureId { get; set; }
public bool? Highlight { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ public async Task CreateChangelog_WithFeatureId_CreatesValidYaml()
Directory.CreateDirectory(outputDir);
var files = Directory.GetFiles(outputDir, "*.yaml");
var yamlContent = await File.ReadAllTextAsync(files[0], TestContext.Current.CancellationToken);
yamlContent.Should().Contain("feature_id: feature:new-search-api");
yamlContent.Should().Contain("feature-id: feature:new-search-api");
}
}

Loading