sienar-cms / core

Apache License 2.0
0 stars 0 forks source link

Change `IEntityWriter.Create()` method to return a `Guid?` so `null` can be returned from API endpoints #37

Open christianlevesque opened 3 days ago

christianlevesque commented 3 days ago

When a non-nullable Guid is returned from an API endpoint, it returns to the client as a stringified default Guid, which is full of 0s. This value is not falsy, so JavaScript clients would have to otherwise explicitly check for a default Guid value as a string in order to check for failure. Instead, Make the Guid nullable so that it can return null on failure, which the JS client would natively understand as falsy.