# withSchema

Learn how to include the content schema in the response metadata.

This method includes the [content schema](/reference/content/schema/introduction) in the response [metadata](/reference/sdk/php/api/response/fetch-response/get-metadata).

## Signature

This method has the following signature:

```php
public function withSchema(bool $includeSchema = true): self
```

This method returns a copy of the options with the change applied, leaving the original unchanged.

## Example

Here is a basic example of how to use this method:

```php
<?php
use Croct\Plug\FetchOptions;

$options = FetchOptions::defaults()->withSchema();
```

## Parameters

The following list describes the supported parameters:

- `includeSchema`: `boolean` (optional) (default: true)

  Whether to include the [content schema](/reference/content/schema/introduction) in the response [metadata](/reference/sdk/php/api/response/fetch-response/get-metadata).
