Skip to content

Commit

Permalink
Bump core from 7710c4d to ae07f24 (#1802)
Browse files Browse the repository at this point in the history
Bumps [core](https://github.com/microsoft/typespec) from `7710c4d` to
`ae07f24`.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/microsoft/typespec/commit/ae07f248557182d42695f11ceaa9a048305afefc"><code>ae07f24</code></a>
lseg blog post (<a
href="https://redirect.github.com/microsoft/typespec/issues/4608">#4608</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/b39abe5e6371c2ddae69539bfe5b32c1f6f09cf8"><code>b39abe5</code></a>
Symbol refactor (<a
href="https://redirect.github.com/microsoft/typespec/issues/4849">#4849</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/49c05272f3a8e726dc5b04a8f759dbf3a332a42b"><code>49c0527</code></a>
[http-client-csharp] Remove incorrect casting for unknown discriminated
subty...</li>
<li><a
href="https://github.com/microsoft/typespec/commit/3b17396f9b7e9d355f3c4aaf8bad76754febb942"><code>3b17396</code></a>
Cleanup docusaurus leftover (<a
href="https://redirect.github.com/microsoft/typespec/issues/4962">#4962</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/2d7eecff6dec52b24818bf3d4040a07a7dd92c37"><code>2d7eecf</code></a>
Diagnostic path log relative to current working dir (<a
href="https://redirect.github.com/microsoft/typespec/issues/4807">#4807</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/bd664ec5530c167a2a46178bc1c6dc7b27e36cce"><code>bd664ec</code></a>
Collect template instantiation stack (<a
href="https://redirect.github.com/microsoft/typespec/issues/4806">#4806</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/65167db027afa2aeb14f86ec6eb49344e50c0abe"><code>65167db</code></a>
Java server label (<a
href="https://redirect.github.com/microsoft/typespec/issues/4961">#4961</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/f03556b57f7eed11dfa8848f4dd00cf0b6bf72ca"><code>f03556b</code></a>
Add new <code>@tagMetadata</code> decorator to OpenAPI library (<a
href="https://redirect.github.com/microsoft/typespec/issues/4834">#4834</a>)</li>
<li>See full diff in <a
href="https://github.com/microsoft/typespec/compare/7710c4d7ebf2ffede2fdb9e02fdf1f915df6ad20...ae07f248557182d42695f11ceaa9a048305afefc">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 6f170ee commit 044731f
Show file tree
Hide file tree
Showing 27 changed files with 75 additions and 222 deletions.
2 changes: 1 addition & 1 deletion core
Submodule core updated 136 files
7 changes: 3 additions & 4 deletions docs/emitters/typespec-autorest-canonical/reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ toc_min_heading_level: 2
toc_max_heading_level: 3
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import { Tabs, TabItem } from '@astrojs/starlight/components';

TypeSpec library for emitting canonical swagger

## Install

<Tabs>
<TabItem value="spec" label="In a spec" default>
<TabItem label="In a spec" default>

```bash
npm install @azure-tools/typespec-autorest-canonical
```

</TabItem>
<TabItem value="library" label="In a library" default>
<TabItem label="In a library" default>

```bash
npm install --save-peer @azure-tools/typespec-autorest-canonical
Expand Down
7 changes: 3 additions & 4 deletions docs/emitters/typespec-autorest/reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ toc_min_heading_level: 2
toc_max_heading_level: 3
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import { Tabs, TabItem } from '@astrojs/starlight/components';

TypeSpec library for emitting openapi from the TypeSpec REST protocol binding

## Install

<Tabs>
<TabItem value="spec" label="In a spec" default>
<TabItem label="In a spec" default>

```bash
npm install @azure-tools/typespec-autorest
```

</TabItem>
<TabItem value="library" label="In a library" default>
<TabItem label="In a library" default>

```bash
npm install --save-peer @azure-tools/typespec-autorest
Expand Down
7 changes: 3 additions & 4 deletions docs/emitters/typespec-azure-rulesets/reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ toc_min_heading_level: 2
toc_max_heading_level: 3
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import { Tabs, TabItem } from '@astrojs/starlight/components';

TypeSpec ruleset for Azure specs

## Install

<Tabs>
<TabItem value="spec" label="In a spec" default>
<TabItem label="In a spec" default>

```bash
npm install @azure-tools/typespec-azure-rulesets
```

</TabItem>
<TabItem value="library" label="In a library" default>
<TabItem label="In a library" default>

```bash
npm install --save-peer @azure-tools/typespec-azure-rulesets
Expand Down
7 changes: 3 additions & 4 deletions docs/emitters/typespec-service-csharp/reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ toc_min_heading_level: 2
toc_max_heading_level: 3
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import { Tabs, TabItem } from '@astrojs/starlight/components';

Azure TypeSpec service code generator for c-sharp

## Install

<Tabs>
<TabItem value="spec" label="In a spec" default>
<TabItem label="In a spec" default>

```bash
npm install @azure-tools/typespec-service-csharp
```

</TabItem>
<TabItem value="library" label="In a library" default>
<TabItem label="In a library" default>

```bash
npm install --save-peer @azure-tools/typespec-service-csharp
Expand Down
3 changes: 1 addition & 2 deletions docs/howtos/Client Generation/00howtogen.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: How to generate client libraries
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import { Tabs, TabItem } from "@astrojs/starlight/components";

This page outlines the steps to build a client library based on your TypeSpec specification. It provides a guide for the whole process from initial API design to the release of SDKs. please visit https://aka.ms/azsdk/dpcodegen.

Expand Down
3 changes: 1 addition & 2 deletions docs/howtos/Client Generation/01setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Setup for SDK customization
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import { Tabs, TabItem } from "@astrojs/starlight/components";

This page explains how to setup customization of a generator if necessary.

Expand Down
3 changes: 1 addition & 2 deletions docs/howtos/Client Generation/02client.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Client hierarchy
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import { Tabs, TabItem } from "@astrojs/starlight/components";

This page documents the default client hierarchy behavior as well as how to customize clients. For an overview of the setup, please visit the previous page.

Expand Down
3 changes: 1 addition & 2 deletions docs/howtos/Client Generation/03convenient.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Convenient method generation
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import { Tabs, TabItem } from "@astrojs/starlight/components";

This page documents how to customize method generation for the emitters. For an overview of the setup, please visit the setup page.

Expand Down
3 changes: 1 addition & 2 deletions docs/howtos/Client Generation/04renaming.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Client renaming
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import { Tabs, TabItem } from "@astrojs/starlight/components";

This page documents how to customize names for client generation. For an overview of the setup, please visit the setup page.

Expand Down
3 changes: 1 addition & 2 deletions docs/howtos/Client Generation/05union.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: One path for multiple input/output
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import { Tabs, TabItem } from "@astrojs/starlight/components";

This page documents emitter behavior and customization when you use union operator `|` or `@sharedRoute` to express multiple input/output for a given path.

Expand Down
3 changes: 1 addition & 2 deletions docs/howtos/Client Generation/06types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Generated Types
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import { Tabs, TabItem } from "@astrojs/starlight/components";

This page documents what type definitions in TypeSpec are generated as in emitted libraries

Expand Down
3 changes: 1 addition & 2 deletions docs/howtos/Client Generation/07tcgcTypes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: TypeSpec Type Representation in TCGC
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import { Tabs, TabItem } from "@astrojs/starlight/components";

This page documents what type definitions in TypeSpec would look like when returned by TCGC

Expand Down
3 changes: 1 addition & 2 deletions docs/howtos/Client Generation/08methodInputs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Method Inputs
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import { Tabs, TabItem } from "@astrojs/starlight/components";

This document outlines the method input signatures that language emitters will generate.

Expand Down
3 changes: 1 addition & 2 deletions docs/howtos/Client Generation/09versioning.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Versioning
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import { Tabs, TabItem } from "@astrojs/starlight/components";

This doc details what emitters will generate for versioned specs

Expand Down
3 changes: 1 addition & 2 deletions docs/howtos/Client Generation/10longRunningOperations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Long-Running Operations
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import { Tabs, TabItem } from "@astrojs/starlight/components";

This doc details what emitters will generate for long-running operations.

Expand Down
3 changes: 1 addition & 2 deletions docs/howtos/Client Generation/11etag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Conditional Request Header
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import { Tabs, TabItem } from "@astrojs/starlight/components";

This doc details what emitters will generate for conditional request header

Expand Down
3 changes: 1 addition & 2 deletions docs/howtos/Client Generation/12multipart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Multipart
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import { Tabs, TabItem } from "@astrojs/starlight/components";

This doc details what emitters will generate for multipart request.

Expand Down
7 changes: 3 additions & 4 deletions docs/libraries/azure-core/reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ toc_min_heading_level: 2
toc_max_heading_level: 3
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import { Tabs, TabItem } from '@astrojs/starlight/components';

TypeSpec Azure Core library

## Install

<Tabs>
<TabItem value="spec" label="In a spec" default>
<TabItem label="In a spec" default>

```bash
npm install @azure-tools/typespec-azure-core
```

</TabItem>
<TabItem value="library" label="In a library" default>
<TabItem label="In a library" default>

```bash
npm install --save-peer @azure-tools/typespec-azure-core
Expand Down
7 changes: 3 additions & 4 deletions docs/libraries/azure-portal-core/reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ toc_min_heading_level: 2
toc_max_heading_level: 3
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import { Tabs, TabItem } from '@astrojs/starlight/components';

TypeSpec Azure Portal Core library

## Install

<Tabs>
<TabItem value="spec" label="In a spec" default>
<TabItem label="In a spec" default>

```bash
npm install @azure-tools/typespec-azure-portal-core
```

</TabItem>
<TabItem value="library" label="In a library" default>
<TabItem label="In a library" default>

```bash
npm install --save-peer @azure-tools/typespec-azure-portal-core
Expand Down
7 changes: 3 additions & 4 deletions docs/libraries/azure-resource-manager/reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ toc_min_heading_level: 2
toc_max_heading_level: 3
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import { Tabs, TabItem } from '@astrojs/starlight/components';

TypeSpec Azure Resource Manager library

## Install

<Tabs>
<TabItem value="spec" label="In a spec" default>
<TabItem label="In a spec" default>

```bash
npm install @azure-tools/typespec-azure-resource-manager
```

</TabItem>
<TabItem value="library" label="In a library" default>
<TabItem label="In a library" default>

```bash
npm install --save-peer @azure-tools/typespec-azure-resource-manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ toc_min_heading_level: 2
toc_max_heading_level: 3
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import { Tabs, TabItem } from '@astrojs/starlight/components';

TypeSpec Data Plane Generation library

## Install

<Tabs>
<TabItem value="spec" label="In a spec" default>
<TabItem label="In a spec" default>

```bash
npm install @azure-tools/typespec-client-generator-core
```

</TabItem>
<TabItem value="library" label="In a library" default>
<TabItem label="In a library" default>

```bash
npm install --save-peer @azure-tools/typespec-client-generator-core
Expand Down
11 changes: 4 additions & 7 deletions docs/release-notes/release-2022-07-08.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,23 @@ Note that **it is unlikely that this change has any impact on existing ARM specs

### Before

```JavaScript
```tsp
@serviceHost("example.com")
namespace MyService;

```

### After

```JavaScript
```tsp
@server("https://example.com", "The endpoint for my service")
namespace MyService;

```

## Versioning uses enums instead of strings

Note that **it is unlikely that this change has any impact on existing ARM specs**. Versions must now be specified using string-valued enumerations, and each of the versioning decorators must reference an enum value rather than using the version string directly.

```JavaScript
```tsp
// Before
@versioned("2021-01-12" | "2022-01-15-preview")
namespace Api;
Expand All @@ -57,13 +55,12 @@ namespace Api;
enum Versions { v2021_01_12: "2021-01-12", v2022_01_15_preview: "2022-01-15-preview" }
```

```JavaScript
```tsp
// Before
@added("2022-01-15-preview")
model Foo {}
// After
@added(Versions.v2022_01_15_preview)
model Foo {}

```
Loading

0 comments on commit 044731f

Please sign in to comment.