YML validation instead of annotation