File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/Elastic.Documentation.Configuration Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 33// See the LICENSE file in the project root for more information
44
55using Elastic . Documentation . Configuration . Assembler ;
6+ using Elastic . Documentation . Configuration . Versions ;
67using YamlDotNet . Serialization ;
78
89namespace Elastic . Documentation . Configuration . Serialization ;
@@ -15,4 +16,6 @@ namespace Elastic.Documentation.Configuration.Serialization;
1516[ YamlSerializable ( typeof ( GoogleTagManager ) ) ]
1617[ YamlSerializable ( typeof ( ContentSource ) ) ]
1718[ YamlSerializable ( typeof ( VersionEntry ) ) ]
19+ [ YamlSerializable ( typeof ( VersionsConfigDto ) ) ]
20+ [ YamlSerializable ( typeof ( VersioningSystemDto ) ) ]
1821public partial class YamlStaticContext ;
Original file line number Diff line number Diff line change 22// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33// See the LICENSE file in the project root for more information
44
5+ using Elastic . Documentation . Configuration . Serialization ;
56using Microsoft . Extensions . DependencyInjection ;
67using Microsoft . Extensions . Options ;
78using YamlDotNet . Serialization ;
@@ -19,7 +20,7 @@ public static IServiceCollection AddVersions(this IServiceCollection services)
1920 using var stream = assembly . GetManifestResourceStream ( ResourceName ) ?? throw new FileNotFoundException ( ResourceName ) ;
2021 using var reader = new StreamReader ( stream ) ;
2122
22- var deserializer = new DeserializerBuilder ( )
23+ var deserializer = new StaticDeserializerBuilder ( new YamlStaticContext ( ) )
2324 . WithNamingConvention ( UnderscoredNamingConvention . Instance )
2425 . Build ( ) ;
2526
You can’t perform that action at this time.
0 commit comments