Skip to main content

Function: secretFieldPaths()

secretFieldPaths(schema): string[]

Defined in: packages/contracts/src/setup-answers.ts:676

Lists where a schema takes a secret, as dotted paths with [] for an array's items and * for a record's keys. Used to state, and to test, that every such place is SecretRef: the OpenAPI document of the setup API is checked against this list (the plan's review focus 3).

Parameters​

schema​

TSchema

Any TypeBox schema.

Returns​

string[]

The paths, in schema order, each once.