---
url: /api/specs/openapi-utils/types/utils/function-read-spec.md
description: api documentation of readSpec from @tsed/openapi-utils
---

## Usage

```typescript
import { readSpec } from "@tsed/openapi-utils";
```

> See [/packages/specs/openapi-utils/src/utils/readSpec.ts](https://github.com/tsedio/tsed/blob/v8.38.2/packages/specs/openapi-utils/src/utils/readSpec.ts#L0-L0).

## Overview

```ts
function readSpec(path: string): Promise<any>;
```
