Skip to content

Commit

Permalink
[http-client-csharp] Bump typespec version to 0.63.0 (#5354)
Browse files Browse the repository at this point in the history
Fixes #5347
  • Loading branch information
ArcturusZhang authored Dec 16, 2024
1 parent 6f6ee2a commit 7ad5e77
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 105 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@ function fromSdkOperationParameters(
): Map<SdkHttpParameter, InputParameter> {
const parameters = new Map<SdkHttpParameter, InputParameter>();
for (const p of operation.parameters) {
if (p.kind === "cookie") {
Logger.getInstance().error(
`Cookie parameter is not supported: ${p.name}, found in operation ${operation.path}`,
);
throw new Error(
`Cookie parameter is not supported: ${p.name}, found in operation ${operation.path}`,
);
}
const param = fromSdkHttpOperationParameter(p, rootApiVersions, sdkContext, typeMap);
parameters.set(p, param);
}
Expand Down Expand Up @@ -329,7 +337,7 @@ function loadOperationPaging(
};
}

// TODO: https://github.com/Azure/typespec-azure/issues/981
// TODO: https://github.com/Azure/typespec-azure/issues/1441
function getParameterLocation(
p: SdkPathParameter | SdkQueryParameter | SdkHeaderParameter | SdkBodyParameter | undefined,
): RequestLocation {
Expand Down
1 change: 1 addition & 0 deletions packages/http-client-csharp/emitter/src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const NetEmitterOptionsSchema: JSONSchemaType<NetEmitterOptions> = {
type: "object",
additionalProperties: false,
properties: {
"emitter-name": { type: "string", nullable: true },
"examples-directory": { type: "string", nullable: true },
"examples-dir": { type: "string", nullable: true },
"api-version": { type: "string", nullable: true },
Expand Down
Loading

0 comments on commit 7ad5e77

Please sign in to comment.