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

Is the "scheme" property supported? #1055

Open
Denny09310 opened this issue Dec 10, 2024 · 2 comments
Open

Is the "scheme" property supported? #1055

Denny09310 opened this issue Dec 10, 2024 · 2 comments
Assignees

Comments

@Denny09310
Copy link

Denny09310 commented Dec 10, 2024

Describe the bug
I'm trying to generate using Refitter the client fot this openapi json file, but even when using the option useIsoDateFormat the [Query] attribute is not generated using the Format property. After trying to debug the problem I found out that in this line of code the property IsDateOrDateTime is false. I couldn't investigate further unfortunately, because I didn't found the root cause

Support Key: 6fb4645

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'UseIsoDateFormatTests.cs'
  2. Change the 'format' and 'type' properties of one of the dates to be inside the 'schema' object (like in the generated file above)
  3. Try to run the test
  4. See the test fail

Expected behavior
Scaffold the client correctly using the 'schema' property

Visual Studio Extension (please complete the following information):

  • Visual Studio 2022
  • Extension Version 1.17.0
@christianhelle christianhelle self-assigned this Dec 10, 2024
@christianhelle
Copy link
Owner

@Denny09310 Thanks for taking the time to report this. I'll see what I can do using the OpenAPI specifications you attached.

This issue might be better to be reported in Refitter, but since I'm also the author of Refitter, it doesn't really matter that much 😄

@Denny09310
Copy link
Author

Yes, sorry, I wasn't sure if I should have posted it here or in the Refitter repository. Since I'm using it through the Visual Studio extension I decided to give as much information as possible 😅

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

No branches or pull requests

2 participants