Skip to content

Commit

Permalink
[Tmdgen] Correction nom alias
Browse files Browse the repository at this point in the history
  • Loading branch information
gideruette committed Dec 13, 2023
1 parent 23be173 commit 98d845f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TopModel.ModelGenerator/OpenApi/OpenApiTmdGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected override async IAsyncEnumerable<string> GenerateCore()

tmdFile.Classes.Add(enumClass);

var p = WriteProperty(_config, new(schema.Key.ToPascalCase(), schema.Value), tmdFile);
var p = WriteProperty(_config, new("value", schema.Value), tmdFile);
p.Class = enumClass;
enumClass.Properties.Add(p);
AddValues(enumClass, schema.Value);
Expand Down

0 comments on commit 98d845f

Please sign in to comment.