-
Notifications
You must be signed in to change notification settings - Fork 77
Support optional path parameter for Modular #3152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…nto monitor-nightly43
…nto monitor-nightly43
…nto monitor-nightly43
This comment was marked as off-topic.
This comment was marked as off-topic.
@@ -930,7 +930,7 @@ | |||
}, | |||
"Azure.Core.Foundations.InnerError": { | |||
"type": "object", | |||
"description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.", | |||
"description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jiaodi could you help investigate why this appears?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/typespec-ts/test/azureModularIntegration/pathParameters.spec.ts
Outdated
Show resolved
Hide resolved
packages/typespec-ts/test/azureModularIntegration/pathParameters.spec.ts
Outdated
Show resolved
Hide resolved
@@ -25,6 +25,8 @@ enum Versions { | |||
@useDependency(Azure.Core.Versions.v1_0_Preview_2) | |||
`2022-08-30`, | |||
} | |||
|
|||
op foo(): void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No operations would lead to no client and model only case. So we can't verify the client name change so add one op here. Could you create an issue to support empty model generation for modular I think we could verify once tcgc has the case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/typespec-ts/test/modularUnit/scenarios/operations/emptyOperation.md
Outdated
Show resolved
Hide resolved
@@ -41,6 +41,7 @@ describe("Azure Core Page Rest Client", () => { | |||
.post({ | |||
body: validBody, | |||
queryParameters: { | |||
"api-version": "2022-12-01-preview", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new change?
This is tsp definition. | ||
|
||
```tsp | ||
op read(@path param?: string): OkResponse; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does optional path params work in RLC?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue tracked #3178
fixes #3154