Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable syntax highlighting for migration guide #237

Merged
merged 1 commit into from
Jun 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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