Skip to content

Commit

Permalink
update (#2833)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-jiaodi authored Sep 20, 2024
1 parent cd429be commit 8b257fa
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# skip: Should generate samples for spread cases

// FIXME: issue tracked in tcgc: https://github.com/Azure/typespec-azure/issues/1421
# Should generate samples for spread cases

Sample generation should handle operation-level parameter order successfully.

Expand Down Expand Up @@ -68,6 +66,7 @@ Raw json files.
Generate samples for spread cases:

```ts samples
/** This file path is /samples-dev/readSample.ts */
import { TestingClient } from "@azure/internal-test";

/**
Expand All @@ -83,7 +82,10 @@ async function read() {
"required header",
"required query",
{ name: "body name" },
{ optionalHeader: "optional header", optionalQuery: "optional query" }
{
optionalHeader: "optional header",
renamedOptional: "renamed optional query"
}
);
console.log(result);
}
Expand Down

0 comments on commit 8b257fa

Please sign in to comment.