---
url: /api/specs/openspec/types/common/interface-open-spec-license.md
description: api documentation of OpenSpecLicense from @tsed/openspec
---

## Usage

```typescript
import { OpenSpecLicense } from "@tsed/openspec";
```

> See [/packages/specs/openspec/src/common/OpenSpecInfo.ts](https://github.com/tsedio/tsed/blob/v8.37.1/packages/specs/openspec/src/common/OpenSpecInfo.ts#L0-L0).

## Overview

```ts
interface OpenSpecLicense {
    name: string;
    url?: string;
}
```

## name

```ts
name: string;
```

The license name used for the API.

## url

```ts
url?: string;
```

A URL to the license used for the API. MUST be in the format of a URL.
