The Wayback Machine - https://web.archive.org/web/20210928002137/https://github.com/dotnet/aspnetcore/issues/37045
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

DateOnly and TimeOnly are displayed as complex objects in open-api schemas rather simple string #37045

Open
rafikiassumani-msft opened this issue Sep 28, 2021 · 0 comments

Comments

@rafikiassumani-msft
Copy link
Contributor

@rafikiassumani-msft rafikiassumani-msft commented Sep 28, 2021

Describe the bug

DateOnly and TimeOnly are being displayed as complex objects in open api schemas for Minimal API endpoints rather than being treated as simple strings. It will make sense for open api to treat them as string -$date-only and string -$time-only

app.MapGet("/events", (DateOnly dateOnly, TimeOnly timeonly) => $" date and time values ... ")

Exceptions (if any)

  ### Further technical details
  .NET SDK (reflecting any global.json):
   Version:   6.0.100-rc.2.21465.13
   Commit:    0d1cdfa6a0
  
  Runtime Environment:
   OS Name:     Windows
   OS Version:  10.0.19043
   OS Platform: Windows
   RID:         win10-x64
   Base Path:   C:\Program Files\dotnet\sdk\6.0.100-rc.2.21465.13\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant