You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Creating a new sense in an example FwLite project ends up with:
Error: System.Text.Json.JsonException: The JSON value could not be converted to System.Guid. Path: $.senses[0].entryId | LineNumber: 0 | BytePositionInLine: 196.
The JSON in question includes Senses[0] as { id: "00000000-0000-0000-0000-df85dbc25d08", entryId: "", definition: {…}, … } - note entryId being an empty string.
To Reproduce
Steps to reproduce the behavior:
Run task fw-lite-web
Create new example project
Create new sense in first entry
Edit definition field, tab out
See error
Expected behavior
A missing entryId would be serialized as null rather than an empty string, or the C# backend code would handle the empty string as a special case in deserializing GUIDs and replace it with either null (for a nullable GUID property) or Guid.Empty (for a non-nullable GUID property).
The text was updated successfully, but these errors were encountered:
rmunn
added
bug
Something isn't working
💻 FW Lite
issues related to the fw lite application, not miniLcm or crdt related
labels
Jan 10, 2025
Describe the bug
Creating a new sense in an example FwLite project ends up with:
Error: System.Text.Json.JsonException: The JSON value could not be converted to System.Guid. Path: $.senses[0].entryId | LineNumber: 0 | BytePositionInLine: 196.
The JSON in question includes Senses[0] as { id: "00000000-0000-0000-0000-df85dbc25d08", entryId: "", definition: {…}, … } - note entryId being an empty string.
To Reproduce
Steps to reproduce the behavior:
task fw-lite-web
Expected behavior
A missing entryId would be serialized as null rather than an empty string, or the C# backend code would handle the empty string as a special case in deserializing GUIDs and replace it with either null (for a nullable GUID property) or Guid.Empty (for a non-nullable GUID property).
The text was updated successfully, but these errors were encountered: