---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [schemas](../index.md) / SchemaCollapseOptions

# Interface: SchemaCollapseOptions

Defined in: [packages/b2c-tooling-sdk/src/schemas/collapse.ts:24](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/schemas/collapse.ts#L24)

Options for collapsing an OpenAPI schema.

## Properties

### expandExamples?

> `optional` **expandExamples**: `string`[]

Defined in: [packages/b2c-tooling-sdk/src/schemas/collapse.ts:44](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/schemas/collapse.ts#L44)

Example names to fully expand (e.g., ["ProductExample"]).
When provided, only these examples will have full content.
Other examples will be shown as empty objects.

***

### expandPaths?

> `optional` **expandPaths**: `string`[]

Defined in: [packages/b2c-tooling-sdk/src/schemas/collapse.ts:30](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/schemas/collapse.ts#L30)

Paths to fully expand (e.g., ["/products", "/orders"]).
When provided, only these paths will have full operation details.
Other paths will show only their HTTP method names.

***

### expandSchemas?

> `optional` **expandSchemas**: `string`[]

Defined in: [packages/b2c-tooling-sdk/src/schemas/collapse.ts:37](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/schemas/collapse.ts#L37)

Schema names to fully expand (e.g., ["Product", "Order"]).
When provided, only these schemas will have full definitions.
Other schemas will be shown as empty objects.
