Skip to content

Commit

Permalink
Merge pull request #345 from MoChilia/update-faq-240408
Browse files Browse the repository at this point in the history
Update FAQ
  • Loading branch information
kairu-ms authored Apr 8, 2024
2 parents a561da9 + cf3a3bd commit b2d838a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file added docs/assets/images/none_type_not_callable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/pages/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ The definition of [200/201 Responses](https://github.com/Azure/azure-rest-api-sp
## Why my codegen V2 generated cmds' help message not inherited from my "summary" message from its swagger file?

Codegen v2 uses "description" of swagger definition for cmd's 'help' message, not 'summary'

## Long running operation(LRO) command execute failed with error: 'None' type object is not callable.

!['None' type object is not callable](../assets/images/none_type_not_callable.png)

This issue is caused by the miss match between Swagger(OpenAPI Spec) definition and LRO behavior. It seems the final response body from LRO is not empty, but the `x-ms-long-running-operation-options.final-state-schema` field in swagger is not defined. You can reference this swagger doc https://github.com/Azure/autorest/tree/main/docs/extensions#x-ms-long-running-operation-options For details. BTW, when you run the cli command, you can add `--debug` argument to display the request logs.

0 comments on commit b2d838a

Please sign in to comment.