[schema] add a warning to avoid a silent bug (follows #109207) [applied]