---
url: /api/specs/schema/types/utils/function-merge-schema.md
description: api documentation of mergeSchema from @tsed/schema
---

## Usage

```typescript
import { mergeSchema } from "@tsed/schema";
```

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

## Overview

```ts
function mergeSchema(schema1: JSONSchema7, schema2: JSONSchema7): JSONSchema7;
```
