---
lang: en
title: 'API docs: repository-json-schema.jsonschemaoptions.optional'
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.optional.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) &gt; [optional](./repository-json-schema.jsonschemaoptions.optional.md)

## JsonSchemaOptions.optional property

List of model properties to mark as optional. Overrides the "partial" option if it is not empty.

<b>Signature:</b>

```typescript
optional?: (keyof T)[];
```

