From d649c1311e43685f825492f3c3c9155784c345e2 Mon Sep 17 00:00:00 2001 From: Esteban Marin Date: Wed, 6 Jun 2018 11:38:07 +0200 Subject: [PATCH] Add syntax highlighting to migration guide (#237) --- docs/migration-from-swagger-codegen.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/migration-from-swagger-codegen.md b/docs/migration-from-swagger-codegen.md index a89491bf1509..b3846aa0f278 100644 --- a/docs/migration-from-swagger-codegen.md +++ b/docs/migration-from-swagger-codegen.md @@ -49,7 +49,7 @@ You can find our released artefact on maven central: Old: -``` +```xml io.swagger swagger-codegen @@ -58,7 +58,7 @@ Old: New: -``` +```xml org.openapitools openapi-generator @@ -67,7 +67,7 @@ New: **Cli:** -``` +```xml io.swagger swagger-codegen-cli @@ -76,7 +76,7 @@ New: New: -``` +```xml org.openapitools openapi-generator-cli @@ -85,7 +85,7 @@ New: **Maven plugin:** -``` +```xml io.swagger swagger-codegen-maven-plugin @@ -94,7 +94,7 @@ New: New: -``` +```xml org.openapitools openapi-generator-maven-plugin @@ -187,7 +187,7 @@ Example: `org.openapitools.codegen.DefaultGenerator` In OpenAPI spec v3, there's no body parameter, which is replaced by [Request Body Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#request-body-object). The parameter name for Request Body is named automatically based on the model name (e.g. User). To control how the "Request Body" parmaeter is named, please add the vendor extension `x-codegen-request-body-name` to the operation: OpenAPI Spec v3: -``` +```yaml paths: /pet: post: @@ -209,7 +209,7 @@ paths: ``` OpenAPI Spec v2: -``` +```yaml paths: /pet: post: