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

Reparent members in clone type #1067

Merged
merged 4 commits into from
Sep 23, 2022
Merged

Conversation

nguerrera
Copy link
Contributor

This caused an issue with the merge with implicit path params into metadata. I ended up needing a param.model === operation.parameters to check that a param is top-level in order to be implicit and it started failing due to cloneType not resetting parent to clone.

@nguerrera
Copy link
Contributor Author

Ugh this doesn't quite fix it, it's part of the solution. Converting to draft until I get to the bottom of it.

@nguerrera nguerrera marked this pull request as draft September 21, 2022 22:13
@azure-pipelines
Copy link

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/1067/

Check the website changes at https://cadlwebsite.z1.web.core.windows.net/prs/1067/

@nguerrera
Copy link
Contributor Author

Seems we're also not reparenting during projection, see also #819 (comment)

@nguerrera
Copy link
Contributor Author

Real issue is #1069

This is good to fix too but not the problem I was immediately facing.

@nguerrera
Copy link
Contributor Author

Marking ready for review. It's no longer urgent for me, but it does fix a bug.

@nguerrera nguerrera marked this pull request as ready for review September 22, 2022 18:03
@nguerrera nguerrera enabled auto-merge (squash) September 23, 2022 15:05
@nguerrera nguerrera merged commit 3a871c7 into microsoft:main Sep 23, 2022
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

Successfully merging this pull request may close these issues.

2 participants