Syntax errors in README.md examples (#843)
Co-authored-by: peter scholz <pscholz.le@gmail.com>
This commit is contained in:
parent
013d2dacd9
commit
fc9a18cc22
14
README.md
14
README.md
|
@ -817,7 +817,7 @@ The example parameter will populate the Swagger UI with the example value, and c
|
||||||
```ruby
|
```ruby
|
||||||
params do
|
params do
|
||||||
requires :id, type: Integer, documentation: { example: 123 }
|
requires :id, type: Integer, documentation: { example: 123 }
|
||||||
optional :name, type String, documentation: { example: 'Buddy Guy' }
|
optional :name, type: String, documentation: { example: 'Buddy Guy' }
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -843,7 +843,7 @@ namespace 'store/order', desc: 'Order operations within a store', swagger: { nes
|
||||||
get :order_id do
|
get :order_id do
|
||||||
...
|
...
|
||||||
end
|
end
|
||||||
namespace 'actions', desc: 'Order actions' do, nested: false
|
namespace 'actions', desc: 'Order actions', nested: false do
|
||||||
get 'evaluate' do
|
get 'evaluate' do
|
||||||
...
|
...
|
||||||
end
|
end
|
||||||
|
@ -1265,7 +1265,7 @@ end
|
||||||
|
|
||||||
The result will look like following:
|
The result will look like following:
|
||||||
|
|
||||||
```
|
```json
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "Get a kitten",
|
"description": "Get a kitten",
|
||||||
|
@ -1292,7 +1292,7 @@ end
|
||||||
|
|
||||||
The result will look like following:
|
The result will look like following:
|
||||||
|
|
||||||
```
|
```json
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "Get kittens",
|
"description": "Get kittens",
|
||||||
|
@ -1319,7 +1319,7 @@ get '/things' do
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
The result will look like following:
|
The result will look like following:
|
||||||
```
|
```json
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "Multiple response",
|
"description": "Multiple response",
|
||||||
|
@ -1351,7 +1351,7 @@ get '/things' do
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
The result will look like following:
|
The result will look like following:
|
||||||
```
|
```json
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "Multiple response with array",
|
"description": "Multiple response with array",
|
||||||
|
@ -1525,7 +1525,7 @@ end
|
||||||
```
|
```
|
||||||
|
|
||||||
Should generate this definitions:
|
Should generate this definitions:
|
||||||
```JSON
|
```json
|
||||||
{
|
{
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"Pet": {
|
"Pet": {
|
||||||
|
|
Loading…
Reference in New Issue