yamllint does not report invalid indentation.
libfyaml passes the yaml test suite and catches these issues.
not replacing yamllint to preserve existing style rules.
Signed-off-by: Florian Stellbrink <flo@stellbr.ink>
The model validator changed into a temporary directory, but the
generator derived its output directory from its script location and
still wrote into the source tree.
Accept an optional API-directory argument and pass the temporary
module directory during validation.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>