JsonApiDotNetCore icon indicating copy to clipboard operation
JsonApiDotNetCore copied to clipboard

Support for various data types of resource attributes and id

Open maurei opened this issue 4 years ago • 1 comments

Resources with attributes of various data types should be thoroughly tested. The following data types should be considered:

  • DateTime, DateTimeOffset, TimeSpan, DateOnly, TimeOnly
  • decimal, double, float
  • signed and unsigned: int, long, short, byte
  • guid
  • bool
  • string, char
  • enum
  • tuples
  • collections
  • complex attributes

Also take into consideration:

  • nullability of above types where applicable
  • all EF Core supported datatypes for identifying keys should be considered
  • see https://swagger.io/docs/specification/data-models/data-types/

~Also address the following: When using Identifiable<TId> where TId is other than string, eg int, the generated client will have its id parameter typed as int in methods, which is incorrect: it should always be string.~

maurei avatar Sep 01 '21 12:09 maurei

Should include support for DateOnly and TimeOnly, which were added in .NET 6.

bkoelman avatar Jul 09 '22 21:07 bkoelman