Looks like the latest version 3.2.2 of yaml validator hook is not compatible (and doesn't work) with bitbucket data center edition (5.5.0).
The last version of the hook: 3.2.0 however seems to work fine.