fix: yams API only accept str/Definition name now (this is retrocompatible)

Consequence of open-source/yams!23

Merge request reports