Validate input_example and output_example in api_doc_gen; resolves #34