Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,12 @@ export type FormanValidationOptions = {
* `appliedDefaults`. Values the caller provided are never overwritten, except `''`, which
* counts as an omission and fills — so under `'always'` a deliberately cleared optional
* field comes back with its default. An explicit `null` is a provided value: it never fills
* and still fails as mandatory. Inactive branches are never filled. */
* and still fails as mandatory. Inactive branches are never filled.
*
* BlueprintValidator's option also accepts `boolean`; that arm is deliberately not carried
* over. `useDefaults: true` is a legacy alias for `'always'` rather than a third behaviour,
* and the platform's own public validation parameter already exposes just the two named
* modes, so there is nothing behind the boolean for a new library to inherit. */
fillDefaults?: 'requiredOnly' | 'always';
/** Maps domain names used in nested.domain to actual domain keys passed to validateFormanWithDomains */
domainAliases?: Record<string, string>;
Expand Down