swagger: 2.0 info: title: Example of request body in 2.0 version: 1.0.0 paths: /opinions: post: consumes: - text/plain parameters: name: AnOpinion in: body schema: type: string examples: text/plain: I think the V3 way is cleaner