forked from microsoft/typespec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rest - filter string constant path http properties when using `@autoR…
…oute` (microsoft#6326) microsoft#6311 switched openapi3 to use `HttpProperty` instead of `HttpOperationParameter`. The `@typespec/rest` package did some filtering of parameters under a couple conditions (including path constants) that wasn't applied to properties. This caused an extra path parameter to be emitted in OpenAPI3 (and typespec-autorest when eventually applying the same changes there). This PR applies the same `@autoRoute` parameter filtering to properties. --------- Co-authored-by: Christopher Radek <[email protected]>
- Loading branch information
1 parent
304bc57
commit d733c75
Showing
3 changed files
with
71 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
changeKind: fix | ||
packages: | ||
- "@typespec/rest" | ||
--- | ||
|
||
Updates `@autoRoute` behavior to apply same HttpOperationParameter filtering to HttpProperty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters