Skip to content

Commit

Permalink
add TODO for allowReserved for path url
Browse files Browse the repository at this point in the history
  • Loading branch information
haolingdong-msft committed Aug 12, 2024
1 parent 643105b commit fc35d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typespec-extension/src/code-model-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ export class CodeModelBuilder {
const schema = this.processSchemaFromSdkType(sdkType, param.name);

let extensions: { [id: string]: any } | undefined = undefined;
// skip-url-encoding,pending on TCGC
// TODO haoling: skip-url-encoding, pending on TCGC issue https://github.com/Azure/typespec-azure/issues/1318
// if (param.kind === "path") {
// if (param.allowReserved) {
// extensions = extensions ?? {};
Expand All @@ -1071,7 +1071,7 @@ export class CodeModelBuilder {
// TODO: deprecate this logic of string/url for x-ms-skip-url-encoding
if (
(param.kind === "query" || param.kind === "path") &&
isSdkBuiltInKind(sdkType.kind) && // TODO: question: Scalar -> builtin kinds, is it fine?
isSdkBuiltInKind(sdkType.kind) &&
schema instanceof UriSchema
) {
extensions = extensions ?? {};
Expand Down

0 comments on commit fc35d0f

Please sign in to comment.