fix(swagger-v2)

closes #5935
This commit is contained in:
Jacob Heider 2024-04-22 10:17:30 -04:00
parent 4ea8ab14a5
commit 7a529a45c6
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -27,7 +27,8 @@ provides:
test:
- run: swagger-codegen generate -i $FIXTURE -l html
fixture:
if: '>=3'
fixture:
content: |
openapi: 3.0.0
info:
@ -40,5 +41,28 @@ test:
200:
description: OK
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"
- swagger-codegen version | grep {{version}}