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
@myieye this looks like it's caused by code in defaultSense (and probably example) in lib/utls.ts we also have some empty id stuff which doesn't look like it's being used anymore, but I don't remember what that was doing. In this case it would make sense to make an empty id constant and use that to solve this bug, but we are calling something else an empty id already.
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: