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

fix(dpg): same type property only mock once #3633

Merged
merged 5 commits into from
Aug 3, 2023

Conversation

archerzz
Copy link
Member

@archerzz archerzz commented Aug 2, 2023

Description

  • fix DFS logic to remove visited type from hashset after being traversed
  • add test case

fix #3632

Checklist

To ensure a quick review and merge, please ensure:

  • The PR has a understandable title and description explaining the why and what.
  • The PR is opened in draft if not ready for review yet.
    • If opened in draft, please allocate sufficient time (24 hours) after moving out of draft for review
  • The branch is recent enough to not have merge conflicts upon creation.

Ready to Land?

  • Build is completely green
    • Submissions with test failures require tracking issue and approval of a CODEOWNER
  • At least one +1 review by a CODEOWNER
  • All -1 reviews are confirmed resolved by the reviewer
    • Override/Marking reviews stale must be discussed with CODEOWNERS first

- fix DFS logic to remove visited type from hashset after being traversed
- add test case

fix Azure#3632
@archerzz
Copy link
Member Author

archerzz commented Aug 3, 2023

Preview PR: Azure/azure-sdk-for-net#38000

As you can see, some missing mock values are added.

@archerzz archerzz merged commit cfef727 into Azure:feature/v3 Aug 3, 2023
iscai-msft added a commit that referenced this pull request Aug 3, 2023
…into getAllModels

* 'feature/v3' of https://github.com/Azure/autorest.csharp:
  fix(dpg): same type property only mock once (#3633)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] property with the same type will not be mocked in generated sample codes
3 participants