Skip to content

Add shared option to @route and @resetRoute - #1183

Merged
tjprescott merged 6 commits into
microsoft:mainfrom
tjprescott:rest/RouteUpdate
Oct 19, 2022
Merged

Add shared option to @route and @resetRoute#1183
tjprescott merged 6 commits into
microsoft:mainfrom
tjprescott:rest/RouteUpdate

Conversation

@tjprescott

Copy link
Copy Markdown
Member

Closes #1133.

@tjprescott
tjprescott marked this pull request as ready for review October 19, 2022 18:00
Comment thread packages/rest/src/http/route.ts Outdated
Comment thread packages/rest/src/http/decorators.ts
Comment thread packages/rest/src/http/types.ts Outdated
Comment thread packages/rest/src/http/route.ts Outdated
Co-authored-by: David Wilson <david@daviwil.com>
@tjprescott
tjprescott requested a review from johanste October 19, 2022 18:11
@tjprescott

tjprescott commented Oct 19, 2022

Copy link
Copy Markdown
Member Author

@johanste had concerns about autoroute, but it's a separate code path and I'm not sure autoroute would generate duplicate routes (and if it does, should we let it?)

Comment thread packages/rest/src/http/decorators.ts Outdated
Comment thread packages/rest/src/http/route.ts Outdated
Comment thread packages/rest/src/http/types.ts Outdated
@azure-pipelines

Copy link
Copy Markdown

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

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

Comment thread packages/rest/src/http/decorators.ts Outdated
@tjprescott
tjprescott merged commit 5c837b5 into microsoft:main Oct 19, 2022
@tjprescott
tjprescott deleted the rest/RouteUpdate branch October 19, 2022 20:31
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.

Add shared options to @route that would exclude this route from duplicate verb+path validation

4 participants