autorest icon indicating copy to clipboard operation
autorest copied to clipboard

positionInOperation in x-ms-parameterized-host does not support

Open pshao25 opened this issue 3 years ago • 2 comments

Before filling a bug

  • [ ] have you checked the faq for known issues.
  • [ ] have you checked existing issues

Describe the bug

I have an x-ms-parameterized-host extension with positionInOperation last. image There is an operation with a required parameter. image Then generate the corresponding API. The accountName is positted before the parameter boolPath. image

Expected behavior The parameter accountName put after parameter boolPath.

Additional context

pshao25 avatar Feb 10 '22 03:02 pshao25

Sharing the offline notes on this:

  1. This parameter has never been supported in autorest V3 so it wouldn't be a bug fix.
  2. Generators do their own parameter reodering depending on optionality, client vs method level params so this would just bring some more confusion.
  3. Not sure why you would even want that.

timotheeguerin avatar Feb 28 '22 16:02 timotheeguerin

I don't want this currently. Just trying this and found it does not work.

pshao25 avatar Mar 01 '22 02:03 pshao25