Skip to content

add TimeSpanObjectTypeVisitor #524

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

Merged
merged 4 commits into from
Dec 23, 2022
Merged

add TimeSpanObjectTypeVisitor #524

merged 4 commits into from
Dec 23, 2022

Conversation

sinantutan
Copy link
Contributor

@sinantutan sinantutan commented Dec 20, 2022

As reported in #401 the type of TimeSpan is incorrectly displayed as a complex object. This PR aims for fixing this issue.

We can then have a new property in our Order class of the type TimeSpan
image

And achieve the following result
image

@sinantutan
Copy link
Contributor Author

@microsoft-github-policy-service agree

Copy link
Contributor

@justinyoo justinyoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sinantutan Thanks for your PR! I left a comment. In addition to that, would you be able to add tests for your changes, please?

@justinyoo justinyoo added the bug Something isn't working label Dec 21, 2022
@sinantutan sinantutan requested a review from justinyoo December 21, 2022 15:53
@sinantutan
Copy link
Contributor Author

@sinantutan Thanks for your PR! I left a comment. In addition to that, would you be able to add tests for your changes, please?

@justinyoo many thanks for reviewing my PR. I've made the changes you requested. Please let me know if anything is missing.

@justinyoo justinyoo added this to the Release 2023Q1 - v1.6.0 milestone Dec 23, 2022
Copy link
Contributor

@justinyoo justinyoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sinantutan for your contribution! LGTM

@justinyoo justinyoo merged commit 4c9d54e into Azure:main Dec 23, 2022
@justinyoo justinyoo added v1.5.1 and removed v1.6.0 labels Jan 26, 2023
Derich367 pushed a commit to Derich367/azure-functions-openapi-extension that referenced this pull request Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type of TimeSpan incorrectly inferred as complex object instead of string
2 participants