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

## Usage

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

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

## Overview

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

## Description

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

See @@JsonSchema@@ to discover available methods.
