---
url: /api/specs/schema/types/fn/function-uri.md
description: api documentation of uri from @tsed/schema
---

## Usage

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

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

## Overview

```ts
function uri(): import("@tsed/schema").JsonSchema<string>;
```

## Description

Declare a new string model with `format: uri`.

See @@JsonSchema@@ to discover available methods.
