Skip to content

Commit

Permalink
Merge pull request swagger-api#10487 from andrew-demb/patch-1
Browse files Browse the repository at this point in the history
Use same spaces style for json snippets in readme
  • Loading branch information
HugoMario committed Oct 15, 2020
2 parents c693c50 + 9512a77 commit d819162
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,10 @@ Your config file for Java can look like

```json
{
"groupId":"com.my.company",
"artifactId":"MyClient",
"artifactVersion":"1.2.0",
"library":"feign"
"groupId": "com.my.company",
"artifactId": "MyClient",
"artifactVersion": "1.2.0",
"library": "feign"
}
```

Expand Down Expand Up @@ -784,7 +784,7 @@ Then you will receive a JSON response with the URL to download the zipped code.
To customize the SDK, you can `POST` to `https://generator.swagger.io/api/gen/clients/{language}` with the following HTTP body:
```json
{
"options": {},
"options": {},
"swaggerUrl": "https://petstore.swagger.io/v2/swagger.json"
}
```
Expand All @@ -793,23 +793,23 @@ in which the `options` for a language can be obtained by submitting a `GET` requ
For example, `curl https://generator.swagger.io/api/gen/clients/python` returns
```json
{
"packageName":{
"opt":"packageName",
"description":"python package name (convention: snake_case).",
"type":"string",
"default":"swagger_client"
"packageName": {
"opt": "packageName",
"description": "python package name (convention: snake_case).",
"type": "string",
"default": "swagger_client"
},
"packageVersion":{
"opt":"packageVersion",
"description":"python package version.",
"type":"string",
"default":"1.0.0"
"packageVersion": {
"opt": "packageVersion",
"description": "python package version.",
"type": "string",
"default": "1.0.0"
},
"sortParamsByRequiredFlag":{
"opt":"sortParamsByRequiredFlag",
"description":"Sort method arguments to place required parameters before optional parameters.",
"type":"boolean",
"default":"true"
"sortParamsByRequiredFlag": {
"opt": "sortParamsByRequiredFlag",
"description": "Sort method arguments to place required parameters before optional parameters.",
"type": "boolean",
"default": "true"
}
}
```
Expand Down

0 comments on commit d819162

Please sign in to comment.