Custom Document Type Validator

Hi, I have a dropdown in the document type and some fields are mandatory based on the dropdown selection. Hence I’m trying to create custom document type validator. which project I should be adding validator class?

when adding to site, it can’t find the class.

refer: ERROR:Missing dependency hippo-repository - #4 by Jaimin_Patel