Skip to content

Commit

Permalink
Add syntax highlighting to migration guide (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
macjohnny authored and jmini committed Jun 6, 2018
1 parent f7eacbb commit d649c13
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/migration-from-swagger-codegen.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ You can find our released artefact on maven central:

Old:

```
```xml
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen</artifactId>
Expand All @@ -58,7 +58,7 @@ Old:

New:

```
```xml
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator</artifactId>
Expand All @@ -67,7 +67,7 @@ New:

**Cli:**

```
```xml
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-cli</artifactId>
Expand All @@ -76,7 +76,7 @@ New:

New:

```
```xml
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-cli</artifactId>
Expand All @@ -85,7 +85,7 @@ New:

**Maven plugin:**

```
```xml
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
Expand All @@ -94,7 +94,7 @@ New:

New:

```
```xml
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
Expand Down Expand Up @@ -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:
Expand All @@ -209,7 +209,7 @@ paths:
```
OpenAPI Spec v2:
```
```yaml
paths:
/pet:
post:
Expand Down

0 comments on commit d649c13

Please sign in to comment.