Page Contents

Home > @loopback/repository-json-schema > JsonSchemaOptions > optional

JsonSchemaOptions.optional property

List of model properties to mark as optional. Overrides the “partial” option if it is not empty.

Signature:

optional?: (keyof T)[];