How to create a validation rule for kong configuration that at least 1 route should be present and service name should starts with s

Hi everyone.
I have done everything but there is a question arise in my head that what if I need to impose my validation rules such as the service name should start with s and there should be atleast 1 route in kong.yaml file how could I achieve this kindly help me out to figure this thing

I have generated the kong.yaml file from spec using inso cli and I am using deck to sync the configurtaion to kong gateway


While I’ve not personally done this you could track down a yaml parser library for your preferred computer language and build the logic there.