mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
parent
4ea8ab14a5
commit
7a529a45c6
1 changed files with 25 additions and 1 deletions
|
@ -27,6 +27,7 @@ provides:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
- run: swagger-codegen generate -i $FIXTURE -l html
|
- run: swagger-codegen generate -i $FIXTURE -l html
|
||||||
|
if: '>=3'
|
||||||
fixture:
|
fixture:
|
||||||
content: |
|
content: |
|
||||||
openapi: 3.0.0
|
openapi: 3.0.0
|
||||||
|
@ -40,5 +41,28 @@ test:
|
||||||
200:
|
200:
|
||||||
description: OK
|
description: OK
|
||||||
extname: yaml
|
extname: yaml
|
||||||
|
- run: swagger-codegen generate -i $FIXTURE -l html
|
||||||
|
if: <3
|
||||||
|
fixture:
|
||||||
|
content: |
|
||||||
|
{
|
||||||
|
"swaggerVersion": "2.0.0",
|
||||||
|
"info": {
|
||||||
|
"version": "0.0.0",
|
||||||
|
"title": "Simple API"
|
||||||
|
},
|
||||||
|
"paths": {
|
||||||
|
"/": {
|
||||||
|
"get": {
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extname: json
|
||||||
- cat index.html | grep "Simple API"
|
- cat index.html | grep "Simple API"
|
||||||
- swagger-codegen version | grep {{version}}
|
- swagger-codegen version | grep {{version}}
|
||||||
|
|
Loading…
Reference in a new issue