AshTypescript.Rpc.FieldProcessing.FieldSelector.Validation
(ash_typescript v0.17.2)
Copy Markdown
View Source
Field validation helpers for the FieldSelector module.
Provides validation functions for checking field selections are valid and properly structured.
Summary
Functions
Checks for duplicate field names in a field selection list.
Validates that a field exists in the given field specs.
Validates that nested fields are non-empty for fields that require selection.
Functions
Checks for duplicate field names in a field selection list.
Normalizes field names using the input formatter before checking for duplicates.
Throws {:duplicate_field, field_name, path} if duplicates are found.
Validates that a field exists in the given field specs.
Throws {:unknown_field, field_name, error_type, path} if not found.
Validates that nested fields are non-empty for fields that require selection.
Throws appropriate errors if validation fails.