. extract yml generation from validation value into seperate methods