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

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

Function: getExampleNames()

getExampleNames(schema): string[]

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

Gets the list of available example names from a schema.

Parameters

schema

The OpenAPI schema

OpenApiSchemaInput | CollapsedOpenApiSchema

Returns

string[]

Array of example names

Released under the Apache-2.0 License.