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

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

Function: getPathKeys()

getPathKeys(schema): string[]

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

Gets the list of available path keys from a schema.

Parameters

schema

The OpenAPI schema

OpenApiSchemaInput | CollapsedOpenApiSchema

Returns

string[]

Array of path keys (e.g., ["/products", "/orders"])

Released under the Apache-2.0 License.