Skip to content

Commit cc70d43

Browse files
committed
readme: small validator doc updates
1 parent a7de59a commit cc70d43

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ after_validators: validator_name
199199

200200
Runs validator functions before and after the `dataset_type` package or `organization_type`/`group_type` group is created/updated.
201201

202+
See [`validators`](#validators) for a description of the values accepted.
202203

203204
### `draft_fields_required`
204205

@@ -374,8 +375,7 @@ Use for fields that must be included. Set to `false` or
374375
don't include this key for fields that are optional.
375376

376377
Setting to `true` will mark the field as required in the editing form
377-
and include `not_empty` in the default validators that will be applied
378-
when `validators` is not specified.
378+
and affects the behavior of the `scheming_required` field validator.
379379

380380

381381
### `choices`
@@ -592,8 +592,8 @@ Set a `property` attribute on dataset fields displayed as "Additional Info", use
592592
### `validators`
593593

594594
The `validators` value is a space-separated string of validator and converter
595-
functions to use for this field when creating or updating data. Defaults to
596-
the validators defined in the CKAN core schemas.
595+
functions to use for this field when creating or updating data. For core fields
596+
the validators default to the ones defined in the CKAN core schemas.
597597

598598
> [!WARNING]
599599
> Use `scheming_required` as the first validator

0 commit comments

Comments
 (0)