Developer Preview — This project is in active development. APIs may change. Provide feedback
Skip to content

@salesforce/b2c-tooling-sdk / schemas / isCollapsedSchema

Function: isCollapsedSchema()

isCollapsedSchema(schema): boolean

Defined in: packages/b2c-tooling-sdk/src/schemas/collapse.ts:254

Checks if a schema has been collapsed (i.e., is in outline form).

Parameters

schema

CollapsedOpenApiSchema

The schema to check

Returns

boolean

true if paths are collapsed (arrays) or schemas are empty objects

Released under the Apache-2.0 License.