|
| 1 | +--- |
| 2 | +title: "1.7.0" |
| 3 | +releaseDate: 2025-12-09 |
| 4 | +version: "1.7.0" |
| 5 | +--- |
| 6 | + |
| 7 | +# 1.7.0 |
| 8 | + |
| 9 | +## Features |
| 10 | + |
| 11 | +### @typespec/compiler |
| 12 | + |
| 13 | +- [#9002](https://github.com/microsoft/typespec/pull/9002) Add `commaDelimited` and `newlineDelimited` values to `ArrayEncoding` enum for serializing arrays with comma and newline delimiters |
| 14 | +- [#8942](https://github.com/microsoft/typespec/pull/8942) - Add 'exit' final event for linter rules |
| 15 | + - Support 'async' in linter definition and async function as callback for 'exit' event. |
| 16 | +- [#9024](https://github.com/microsoft/typespec/pull/9024) [API] Add `node` to `SourceModel` type |
| 17 | +- [#8619](https://github.com/microsoft/typespec/pull/8619) Add support for escaping param like tags(`@param`, `@prop`, etc.) identifier with backtick in doc comments to allow special characters |
| 18 | + |
| 19 | +### @typespec/http |
| 20 | + |
| 21 | +- [#8962](https://github.com/microsoft/typespec/pull/8962) support documentation on union variants for response descriptions |
| 22 | + |
| 23 | +### @typespec/openapi3 |
| 24 | + |
| 25 | +- [#9002](https://github.com/microsoft/typespec/pull/9002) Add `commaDelimited` and `newlineDelimited` values to `ArrayEncoding` enum for serializing arrays with comma and newline delimiters |
| 26 | + |
| 27 | +### @typespec/json-schema |
| 28 | + |
| 29 | +- [#9038](https://github.com/microsoft/typespec/pull/9038) Add discriminator support and polymorphic models strategy option |
| 30 | + - Automatically injects discriminator property into base models with `@discriminator` decorator |
| 31 | + - Marks discriminator property as required in generated schemas |
| 32 | + - New `polymorphic-models-strategy` emitter option with three strategies: |
| 33 | + - `ignore`: Emit as regular object schema (default) |
| 34 | + - `oneOf`: Emit oneOf schema for closed discriminated unions |
| 35 | + - `anyOf`: Emit anyOf schema for open discriminated unions |
| 36 | + - Includes discriminator.mapping in oneOf/anyOf schemas for improved validation |
| 37 | + |
| 38 | +## Bug Fixes |
| 39 | + |
| 40 | +### @typespec/compiler |
| 41 | + |
| 42 | +- [#8917](https://github.com/microsoft/typespec/pull/8917) Add security warning to tsp init CLI documentation for external templates (#8916) |
| 43 | +- [#8997](https://github.com/microsoft/typespec/pull/8997) UnusedUsing Diagnostics are reported as warning instead of hint when there are linters defined in tspconfig.yaml |
| 44 | + |
| 45 | +### @typespec/http |
| 46 | + |
| 47 | +- [#8961](https://github.com/microsoft/typespec/pull/8961) Support nested unions in operation return types |
| 48 | + |
| 49 | +### @typespec/openapi3 |
| 50 | + |
| 51 | +- [#9151](https://github.com/microsoft/typespec/pull/9151) Import OpenAPI 3.1/3.2 schemas with contentEncoding: base64 as bytes type with `@encode("base64", string)` decorator |
| 52 | +- [#9076](https://github.com/microsoft/typespec/pull/9076) Respect `@externalDocs` on properties |
| 53 | +- [#8961](https://github.com/microsoft/typespec/pull/8961) Support nested unions in operation return types |
0 commit comments