Skip to main content
Version: Current

pii_fields

@rotorsoft/act-root


@rotorsoft/act-root / act/src / pii_fields

Function: pii_fields()

pii_fields(schema): readonly string[]

Defined in: libs/act/src/sensitive.ts:88

The top-level field names of a schema marked with sensitive(). Adapters and tooling use it to reflect sensitivity on their own wire surface (the act-http OpenAPI emitter marks these fields writeOnly). Returns [] for a schema with no sensitive fields.

Parameters​

schema​

ZodType

Returns​

readonly string[]