Skip to content

Commit

Permalink
Bump core from ae07f24 to 9c51f13 (#1804)
Browse files Browse the repository at this point in the history
Bumps [core](https://github.com/microsoft/typespec) from `ae07f24` to
`9c51f13`.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/microsoft/typespec/commit/9c51f13aeadf75d1883985ca68504beca973d355"><code>9c51f13</code></a>
Don't propagate client parameters to operation (<a
href="https://redirect.github.com/microsoft/typespec/issues/4295">#4295</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/78140e410dc727d0daa80993c9df4a0db763bcb5"><code>78140e4</code></a>
Add paging support (<a
href="https://redirect.github.com/microsoft/typespec/issues/4470">#4470</a>)</li>
<li>See full diff in <a
href="https://github.com/microsoft/typespec/compare/ae07f248557182d42695f11ceaa9a048305afefc...9c51f13aeadf75d1883985ca68504beca973d355">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
  • Loading branch information
dependabot[bot] and timotheeguerin authored Nov 5, 2024
1 parent 044731f commit 77a9c6f
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion core
Submodule core updated 65 files
+8 −0 .chronus/changes/paging-2024-8-19-17-3-58.md
+8 −0 .chronus/changes/paging-2024-8-19-17-3-59.md
+2 −1 packages/astro-utils/tsconfig.json
+158 −13 packages/compiler/generated-defs/TypeSpec.ts
+151 −7 packages/compiler/lib/std/decorators.tsp
+26 −0 packages/compiler/src/core/messages.ts
+2 −0 packages/compiler/src/core/program.ts
+1 −44 packages/compiler/src/lib/decorators.ts
+377 −0 packages/compiler/src/lib/paging.ts
+23 −2 packages/compiler/src/lib/tsp-index.ts
+12 −3 packages/compiler/src/utils/misc.ts
+134 −0 packages/compiler/test/decorators/paging.test.ts
+0 −1 packages/http-client-csharp/emitter/src/lib/client-model-builder.ts
+1 −2 packages/http-client-csharp/emitter/src/lib/operation-converter.ts
+15 −3 packages/http-client-csharp/emitter/test/Unit/encode.test.ts
+20 −4 packages/http-client-csharp/emitter/test/Unit/property-type.test.ts
+5 −1 packages/http-client-csharp/emitter/test/Unit/scalar.test.ts
+5 −1 packages/http-client-csharp/emitter/test/Unit/string-format.test.ts
+7 −9 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Providers/ClientProvider.cs
+41 −33 ...ges/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Providers/RestClientProvider.cs
+1 −10 ...harp/generator/Microsoft.Generator.CSharp.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs
+1 −10 .../generator/Microsoft.Generator.CSharp.ClientModel/test/Providers/ClientProviders/RestClientProviderTests.cs
+37 −44 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/authentication/api-key/tspCodeModel.json
+37 −44 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/authentication/http/custom/tspCodeModel.json
+37 −44 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/authentication/oauth2/tspCodeModel.json
+35 −43 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/authentication/union/tspCodeModel.json
+143 −178 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/naming/tspCodeModel.json
+193 −235 ...ient-csharp/generator/TestProjects/CadlRanch/http/client/structure/client-operation-group/tspCodeModel.json
+237 −300 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/structure/default/tspCodeModel.json
+88 −130 ...es/http-client-csharp/generator/TestProjects/CadlRanch/http/client/structure/multi-client/tspCodeModel.json
+88 −130 ...tp-client-csharp/generator/TestProjects/CadlRanch/http/client/structure/renamed-operation/tspCodeModel.json
+88 −130 ...-client-csharp/generator/TestProjects/CadlRanch/http/client/structure/two-operation-group/tspCodeModel.json
+284 −350 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/bytes/tspCodeModel.json
+238 −299 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/datetime/tspCodeModel.json
+204 −258 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/duration/tspCodeModel.json
+68 −74 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/basic/tspCodeModel.json
+140 −170 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/spread/tspCodeModel.json
+60 −72 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/media-type/tspCodeModel.json
+184 −220 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/tspCodeModel.json
+515 −587 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/tspCodeModel.json
+52 −65 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/server/path/multiple/tspCodeModel.json
+22 −26 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/server/path/single/tspCodeModel.json
+30 −40 ...es/http-client-csharp/generator/TestProjects/CadlRanch/http/server/versions/not-versioned/tspCodeModel.json
+612 −696 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/tspCodeModel.json
+497 −563 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/tspCodeModel.json
+50 −62 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/enum/extensible/tspCodeModel.json
+45 −54 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/enum/fixed/tspCodeModel.json
+48 −57 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/empty/tspCodeModel.json
+70 −94 ...nt-csharp/generator/TestProjects/CadlRanch/http/type/model/inheritance/enum-discriminator/tspCodeModel.json
+65 −86 ...-csharp/generator/TestProjects/CadlRanch/http/type/model/inheritance/single-discriminator/tspCodeModel.json
+48 −57 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/usage/tspCodeModel.json
+1,277 −1,469 ...p-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/tspCodeModel.json
+350 −434 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/tspCodeModel.json
+800 −992 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/tspCodeModel.json
+1,132 −1,306 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/tspCodeModel.json
+297 −345 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/tspCodeModel.json
+390 −450 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/tspCodeModel.json
+171 −229 packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json
+8 −0 packages/http/lib/http.tsp
+200 −0 packages/website/sidebars.ts
+1 −0 website/src/content/current-sidebar.ts
+20 −0 website/src/content/docs/docs/libraries/http/reference/data-types.md
+1 −0 website/src/content/docs/docs/libraries/http/reference/index.mdx
+245 −5 website/src/content/docs/docs/standard-library/built-in-decorators.md
+109 −0 website/src/content/docs/docs/standard-library/pagination.md
2 changes: 1 addition & 1 deletion packages/typespec-autorest-canonical/test/paging.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ it("define a custom paged operation with custom next link", async () => {
@doc("List of items.")
items: T[];
@nextLink
@Azure.Core.nextLink
@doc("Link to fetch more items.")
\`@odata.nextLink\`?: string;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/typespec-autorest/test/paging.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ it("define a custom paged operation with custom next link", async () => {
model CustomPageModel<T> {
items: T[];
@nextLink
@Azure.Core.nextLink
\`@odata.nextLink\`?: string;
}
op list(): CustomPageModel<{}>;
Expand All @@ -45,7 +45,7 @@ it("define a custom paged operation with custom item name", async () => {
@items
itemList?: string[];
@nextLink
@Azure.Core.nextLink
nextLink?: string;
}
Expand Down
12 changes: 5 additions & 7 deletions packages/typespec-azure-core/test/decorators.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe("typespec-azure-core: decorators", () => {
@items
foos: string[];
@nextLink
@Azure.Core.nextLink
nextThing?: string;
}
`);
Expand All @@ -68,7 +68,7 @@ describe("typespec-azure-core: decorators", () => {
things: string[];
doo: {
@nextLink
@Azure.Core.nextLink
next?: string;
}
}
Expand All @@ -90,7 +90,7 @@ describe("typespec-azure-core: decorators", () => {
@items
\`base.things\`: string[];
@nextLink
@Azure.Core.nextLink
\`base.next\`?: string;
}
`);
Expand Down Expand Up @@ -170,7 +170,7 @@ describe("typespec-azure-core: decorators", () => {
@doc(".")
nested: {
@nextLink
@Azure.Core.nextLink
@doc(".")
nextLink: string;
}
Expand All @@ -187,7 +187,6 @@ describe("typespec-azure-core: decorators", () => {
@test
@doc(".")
@route("/test")
@list
op foo is Azure.Core.Foundations.Operation<{}, ETagParam & MyPage>;
`);
const actual = getPagedResult(runner.program, foo as Operation);
Expand All @@ -210,7 +209,7 @@ describe("typespec-azure-core: decorators", () => {
@doc(".")
values?: string[];
@nextLink
@Azure.Core.nextLink
@doc(".")
nextLink: string;
}
Expand All @@ -227,7 +226,6 @@ describe("typespec-azure-core: decorators", () => {
@test
@doc(".")
@route("/test")
@list
op foo is Azure.Core.Foundations.Operation<{}, MyFooPageResult>;
`);
const actual = getPagedResult(runner.program, foo as Operation);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe("typespec-azure-core: use-standard-names rule", () => {
@pagedResult
model FooPage {
@nextLink
@Azure.Core.nextLink
next: string,
@items
value: Foo[];
Expand Down Expand Up @@ -98,7 +98,7 @@ describe("typespec-azure-core: use-standard-names rule", () => {
@pagedResult
model FooPage {
@nextLink
@Azure.Core.nextLink
next: string,
@items
value: Foo[];
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-azure-resource-manager/lib/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ model ResourceListCustomResult<Result> {
value: Result[];

/** The link to the next page of items */
@nextLink
@Azure.Core.nextLink
nextLink?: string;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("typespec-client-generator-core: paged operation", () => {
@items
@clientName("values")
tests: Test[];
@nextLink
@Azure.Core.nextLink
@clientName("nextLink")
next: string;
}
Expand Down

0 comments on commit 77a9c6f

Please sign in to comment.