docs/index: fix validator class

Required is deprecated, sorry about that.