This repository was archived by the owner on May 22, 2026. It is now read-only.
add feature --generate-sample - #1275
Closed
Yuchao Yan (msyyc) wants to merge 67 commits into
Closed
Conversation
Yuchao Yan (msyyc)
force-pushed
the
generate-sample
branch
from
June 2, 2022 07:11
97ed6df to
74c2168
Compare
Yuchao Yan (msyyc)
force-pushed
the
generate-sample
branch
from
June 6, 2022 08:25
779db73 to
248afce
Compare
Yuchao Yan (msyyc)
force-pushed
the
generate-sample
branch
from
June 7, 2022 10:21
b632676 to
7e9a828
Compare
iscai-msft
reviewed
Jun 10, 2022
iscai-msft
reviewed
Jun 29, 2022
iscai-msft
reviewed
Jun 29, 2022
| body_param["clientDefaultValue"] = body_type["value"] | ||
| body_param["flattened"] = flattened | ||
| body_param["isPartialBody"] = is_partial_body | ||
| body_param["restApiName"] = body_param["restApiName"] or to_lower_camel_case( |
Member
Author
Member
Author
|
Hi iscai-msft I fix the review comment and please review again. |
|
Cool feature- Any update on merging this? |
| import logging | ||
| import re | ||
|
|
||
| _LOGGER = logging.getLogger(__name__) |
| def main(): | ||
| client = AutoRestDurationTestService() | ||
|
|
||
| response = client.duration.get_null() |
Member
There was a problem hiding this comment.
To make the samples can be picked up at doc site, the "--include-x-ms-examples-original-file" should be enabled as modelerfour option, and the "x-ms-original-file" of the example should be shown as comment in the generated sample file.
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

fix #1062
effect picture: https://learn.microsoft.com/en-us/rest/api/cdn/custom-domains/create?tabs=HTTP#examples