Adds state for read-only body and property validation.