pub fn compact_custom_fields(fields: &[Value]) -> Value
Compact custom field definitions while preserving option IDs for fields whose possible values live in type_config.options.
type_config.options