---
title: "1.4.0"
releaseDate: 2025-08-06
version: "1.4.0"
---

# 1.4.0

## Features

### @typespec/compiler

- [#4383](https://github.com/microsoft/typespec/pull/4383) Expose `createSourceLoader` via `@typespec/compiler/ast`

### @typespec/openapi3

- [#8289](https://github.com/microsoft/typespec/pull/8289) [Converter] Add support for importing OAS const
- [#8240](https://github.com/microsoft/typespec/pull/8240) [Converter] Add support for importing discriminator mappings in openAPI
- [#8272](https://github.com/microsoft/typespec/pull/8272) [Converter] Add support for importing multipart request bodies
- [#8201](https://github.com/microsoft/typespec/pull/8201) [Converter] Add support for importing servers
- [#8197](https://github.com/microsoft/typespec/pull/8197) [Converter] Add support for importing tags metadata

### typespec-vscode

- [#7691](https://github.com/microsoft/typespec/pull/7691) Provide emitter options as comments when adding a new emitter

## Bug Fixes

### @typespec/compiler

- [#8152](https://github.com/microsoft/typespec/pull/8152) Remove incorrect example of service option model from documents

### @typespec/http

- [#8276](https://github.com/microsoft/typespec/pull/8276) Fix circular import causing `tsp compile --watch` breakage
- [#7771](https://github.com/microsoft/typespec/pull/7771) Fix OAuth2 scope deduplication in OpenAPI spec generation. OAuth2 authentication schemes with multiple flows sharing the same scopes no longer generate duplicate scope entries in the security section.

### @typespec/openapi

- [#8192](https://github.com/microsoft/typespec/pull/8192) Update `@info` decorator documentation to the latest

### @typespec/openapi3

- [#8267](https://github.com/microsoft/typespec/pull/8267) http parts extensions are now emitted
- [#8369](https://github.com/microsoft/typespec/pull/8369) Operation deprecated field is inherited from containing interface/namespace(s)
- [#8225](https://github.com/microsoft/typespec/pull/8225) default value for properties was declared without the proper syntax, leading to compilation issues
- [#8217](https://github.com/microsoft/typespec/pull/8217) invalid symbols being produced by discrminator import
- [#8214](https://github.com/microsoft/typespec/pull/8214) ensures that value notation is used when importing extension values
- [#8215](https://github.com/microsoft/typespec/pull/8215) recognize union types during import even when type object is set
- [#8275](https://github.com/microsoft/typespec/pull/8275) [Converter] log warnings when operationId is missing from Open API spec, and generate an operation name
- [#8207](https://github.com/microsoft/typespec/pull/8207) [Converter] fixed a bug that would cause nullable array schemas to generate as unions with only a `null` variant. These schemas now generate an array variant as well.
- [#8203](https://github.com/microsoft/typespec/pull/8203) [Converter] fixed a bug in which union definitions converted from `oneOf`/`anyOf` definitions in OpenAPI3 schemas were missing semicolon delimiters.

### @typespec/json-schema

- [#8365](https://github.com/microsoft/typespec/pull/8365) Fix: Json Schema crashing trying to render template declaration

### @typespec/versioning

- [#8327](https://github.com/microsoft/typespec/pull/8327) Skip validating versioning in template declaration as information could be missing
