Support 'yaml' as a format for the Analyze API

Fixes #4311