---
lang: en
title: 'API docs: repository-json-schema.jsonschemaoptions'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/repository-json-schema
permalink: /doc/en/lb4/apidocs.repository-json-schema.jsonschemaoptions.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository-json-schema](./repository-json-schema.md) &gt; [JsonSchemaOptions](./repository-json-schema.jsonschemaoptions.md)

## JsonSchemaOptions interface

<b>Signature:</b>

```typescript
export interface JsonSchemaOptions<T extends object> 
```

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [exclude](./repository-json-schema.jsonschemaoptions.exclude.md) | (keyof T)\[\] | List of model properties to exclude from the schema. |
|  [includeRelations](./repository-json-schema.jsonschemaoptions.includerelations.md) | boolean | Set this flag if you want the schema to define navigational properties for model relations. |
|  [optional](./repository-json-schema.jsonschemaoptions.optional.md) | (keyof T)\[\] | List of model properties to mark as optional. Overrides the "partial" option if it is not empty. |
|  [partial](./repository-json-schema.jsonschemaoptions.partial.md) | boolean \| 'deep' | Set this flag to mark all model properties as optional. This is typically used to describe request body of PATCH endpoints. This option will be overridden by the "optional" option if it is set and non-empty.<!-- -->The flag also applies to nested model instances if its value is set to 'deep', such as: |
|  [title](./repository-json-schema.jsonschemaoptions.title.md) | string | The title to use in the generated schema.<!-- -->When using options like <code>exclude</code>, the auto-generated title can be difficult to read for humans. Use this option to change the title to a more meaningful value. |


