Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for various data types of resource attributes and id #1051

Open
maurei opened this issue Sep 1, 2021 · 1 comment
Open

Support for various data types of resource attributes and id #1051

maurei opened this issue Sep 1, 2021 · 1 comment
Labels

Comments

@maurei
Copy link
Member

maurei commented Sep 1, 2021

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:

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 maurei added the OpenAPI label Sep 1, 2021
@maurei maurei changed the title Support for various data types of resource attributes Support for various data types of resource attributes and id Sep 17, 2021
@bkoelman
Copy link
Member

bkoelman commented Jul 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants