api: fix validate output