Skip to content

Conversation

@peombwa
Copy link
Contributor

@peombwa peombwa commented Oct 24, 2022

This PR closes #973 by adding deserializeFromResponse method to EnumImplementation class in schema/enum.ts for deserializing enum responses. The old implementation relied on deserializeFromResponse method from the extended String class.

Copy link
Contributor

@dolauli dolauli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dolauli dolauli merged commit 5e51492 into Azure:main Nov 4, 2022
dolauli pushed a commit to dolauli/autorest.powershell that referenced this pull request Jun 6, 2023
dolauli pushed a commit that referenced this pull request Jun 6, 2023
VeryEarly pushed a commit that referenced this pull request Jun 14, 2023
dolauli added a commit that referenced this pull request Jun 28, 2023
* putOperation['requestMediaTypes']['application/json'].parameters.find

* generate variants for update(get+put)

* generate call method with result

* generate client methods with result

* decouple class.ts a little bit

* more refactoring

* more refactoring

* more refactoring

* fix

* more refactor, generate get+put

* bugfix

* set body parameter all optional for get put

* resolve conflict with bc04a21

* resolve conflict with 96e95ea

* resolve conflict with f0a3b20

* v4 - Fixed an issue wrt the name conflict (#1165)

* Remove complex interface information from help markdown (#1164)

* resolve conflict with 0bc76c3

* v4 - Inherited internal property should be internal instead of public (#1167)

* v4 - Polymorphic member should be public in a model (#1168)

* Update test-module.ps1 to enable exit (#1170)

* v4 - only singulize the last word in the group (#1172)

* v4 - remove duplicated word in group (#1169)

* Fixed two minor issues - single quote related and uri.tostring related (#953)

* Fixed two minor issues - single quote related and uri.tostring related

* Revert the change

* Escape angle brackets for placeholders (#958)

* Escape angle brackets for placeholders

* Use Backticks to escape

Co-authored-by: Timothy Wamalwa <twamalwa@microsoft.com>
Co-authored-by: Xiaogang <xidi@microsoft.com>

* resolve conflict with 7483af5

* Quote prerelease version. (#977)

* Deserialize enum responses. (#1010)

* Update directives.md (#1101)

* Add warning message for -DefaultProfile (#1128)

* Add warning message for -DefaultProfile and clean model cmdlet folder when regenerate

* Use PSVersionTable.PSVersion for PowerShell versio

* Fix double quote in string pattern (#1171)

* Fix double quote in string pattern

* Update powershell/llcsharp/schema/string.ts

* v4 - update some dependencies (#1176)

* Fix date issue in URL (#1177)

* resolve conflict with 2a461a1

* v4 - update @autorest/extension-base to 3.5.2 and fixed issues caused by breaking changes (#1179)

* resolve conflict with 9d511a9

* Keep consistent GUID after updating psd1. Fixed issues [#981] (#1181)

* fix bug in resolve response type

* fix resolve type

* add missing yield

* also compare exceptions in get response with put reqeusts

* adjust parameters order when invoke client method

* bugfix

* fix serialization mode

* fix OperationType for Set cmdlets

* add flag to disable Get+Put

* adjust parameters order for client methods

* adjust parameters order for client methods with header parameters added

* enable GET+PUT only for azure services

* adjust parameters order while invoking client methods

* resolve some comments

* bugfix

* match path for all get operations, edit virtual properties required in plugin vreate inline properties

* bugfix

* Update create-commands-v2.ts to fix a minor issue

* minor fix

* revert OperationType update for Set cmdlet

* fix variable name

* bugfix: GET+PUT get only accept path parameters

* do not generate GET+PUT when GET has query parameters

* bugfix

* adjust parameters order while invoking client methods

---------

Co-authored-by: Beisi Zhou <zazbs@qq.com>
Co-authored-by: Vincent Dai <23257217+vidai-msft@users.noreply.github.com>
Co-authored-by: Xiaogang <xidi@microsoft.com>
Co-authored-by: Tim <timwamalwa@gmail.com>
Co-authored-by: Timothy Wamalwa <twamalwa@microsoft.com>
Co-authored-by: Peter Ombwa <peter.ombwa@microsoft.com>
Co-authored-by: Peter Ombwa <peombwa@microsoft.com>
Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>
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.

Modules with operation objects that return enum type responses fail to build

2 participants