api_generator: fix barcode spec sample