Skip to content

Commit

Permalink
remove converter for ws type from numbers to string as numbers are al…
Browse files Browse the repository at this point in the history
…ready in changes. Update type gen to match
  • Loading branch information
hahn-kev committed Jan 28, 2025
1 parent 69c0670 commit 8daf2a0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private static void ConfigureMiniLcmTypes(ConfigurationBuilder builder)
exportBuilder.Ignore();
}
}));
builder.ExportAsEnum<WritingSystemType>().UseString();
builder.ExportAsEnum<WritingSystemType>();
builder.ExportAsInterface<MiniLcmJsInvokable>()
.FlattenHierarchy()
.WithPublicProperties()
Expand Down
1 change: 0 additions & 1 deletion backend/FwLite/MiniLcm/Models/WritingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public record WritingSystems
public WritingSystem[] Vernacular { get; set; } = [];
}

[JsonConverter(typeof(JsonStringEnumConverter))]
public enum WritingSystemType
{
Vernacular = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// the code is regenerated.

export enum WritingSystemType {
Vernacular = "Vernacular",
Analysis = "Analysis"
Vernacular = 0,
Analysis = 1
}
/* eslint-enable */
2 changes: 1 addition & 1 deletion frontend/viewer/src/lib/entry-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const writingSystems: IWritingSystems = {
'abbreviation': 'Por',
'font': '???',
'exemplars': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'],
'type': WritingSystemType.Vernacular,
'type': WritingSystemType.Analysis,
'order': 1
}
],
Expand Down

0 comments on commit 8daf2a0

Please sign in to comment.