Skip to content

Commit f4c4c72

Browse files
committed
Updated tested Python versions
1 parent a5381eb commit f4c4c72

File tree

6 files changed

+34
-86
lines changed

6 files changed

+34
-86
lines changed

.github/workflows/vAPI-testing.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: [3.5, 3.6, 3.7, 3.8]
11+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
1212

1313
steps:
1414
- uses: actions/checkout@v1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ It is implemented using Python Flask + Connexion and consists of a user database
77

88
## How is this version different from all the other vulnerable-API forks on GitHub?
99

10-
1. Python 3.5, 3.6, 3.7 and 3.8 supported.
10+
1. Python 3.6, 3.7, 3.8, 3.9 and 3.10 supported and tested.
1111
1. OpenAPI first, using [Connexion](https://github.com/zalando/connexion)
1212
1. Includes tests and an [OpenAPI 3 fuzzer](https://github.com/vwt-digital/openapi3-fuzzer)
1313
1. It adds a business relevant widget reservation endpoint.

openapi/vAPI.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ paths:
1313
'200':
1414
description: API status results
1515
content:
16-
application/json; charset=UTF-8:
16+
'application/json':
1717
schema:
18-
type: string
18+
type: object
1919
examples: {}
2020
/tokens:
2121
post:
@@ -41,20 +41,20 @@ paths:
4141
'200':
4242
description: Authentication response
4343
content:
44-
application/json; charset=UTF-8:
44+
'application/json':
4545
schema:
4646
type: string
4747
examples: {}
4848
'400':
4949
description: Invalid input
5050
content:
51-
application/problem+json; charset=UTF-8:
51+
'application/problem+json':
5252
schema:
5353
type: string
5454
'401':
5555
description: Unauthorized
5656
content:
57-
application/json; charset=UTF-8:
57+
'application/json':
5858
schema:
5959
type: string
6060
examples:
@@ -105,25 +105,25 @@ paths:
105105
'400':
106106
description: Invalid input
107107
content:
108-
application/problem+json; charset=UTF-8:
108+
'application/problem+json':
109109
schema:
110110
type: string
111111
'401':
112112
description: Unauthenticated
113113
content:
114-
application/json; charset=UTF-8:
114+
'application/json':
115115
schema:
116116
type: string
117117
'403':
118118
description: Unauthorized
119119
content:
120-
application/json; charset=UTF-8:
120+
'application/json':
121121
schema:
122122
type: string
123123
'404':
124124
description: Not found
125125
content:
126-
application/json; charset=UTF-8:
126+
'application/json':
127127
schema:
128128
type: string
129129
/user:
@@ -154,7 +154,7 @@ paths:
154154
'200':
155155
description: Auto generated using Swagger Inspector
156156
content:
157-
application/json:
157+
'application/json':
158158
schema:
159159
type: object
160160
properties:
@@ -173,19 +173,19 @@ paths:
173173
'400':
174174
description: Invalid input
175175
content:
176-
application/json; charset=UTF-8:
176+
'application/json':
177177
schema:
178178
type: string
179179
'401':
180180
description: Unauthenticated
181181
content:
182-
application/json; charset=UTF-8:
182+
'application/json':
183183
schema:
184184
type: string
185185
'403':
186186
description: Unauthorized
187187
content:
188-
application/json; charset=UTF-8:
188+
'application/json':
189189
schema:
190190
type: string
191191
/uptime:
@@ -197,7 +197,7 @@ paths:
197197
'200':
198198
description: Auto generated using Swagger Inspector
199199
content:
200-
application/json; charset=UTF-8:
200+
'application/json':
201201
schema:
202202
type: string
203203
examples: {}
@@ -216,14 +216,14 @@ paths:
216216
'200':
217217
description: Auto generated using Swagger Inspector
218218
content:
219-
application/json; charset=UTF-8:
219+
'application/json':
220220
schema:
221221
type: string
222222
examples: {}
223223
'404':
224224
description: Not found
225225
content:
226-
application/json; charset=UTF-8:
226+
'application/json':
227227
schema:
228228
type: string
229229
/widget:
@@ -253,25 +253,25 @@ paths:
253253
'200':
254254
description: Successful widget reservation
255255
content:
256-
application/json; charset=UTF-8:
256+
'application/json':
257257
schema:
258258
type: string
259259
examples: {}
260260
'400':
261261
description: Invalid input
262262
content:
263-
application/problem+json; charset=UTF-8:
263+
'application/problem+json':
264264
schema:
265265
type: string
266266
'401':
267267
description: Unauthenticated
268268
content:
269-
application/json; charset=UTF-8:
269+
'application/json':
270270
schema:
271271
type: string
272272
'403':
273273
description: Unauthorized
274274
content:
275-
application/json; charset=UTF-8:
275+
'application/json':
276276
schema:
277277
type: string

requirements-test.txt

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,9 @@
1-
astroid==2.3.3
2-
attrs==19.3.0
3-
certifi==2019.11.28
4-
chardet==3.0.4
5-
Click==7.0
6-
clickclick==1.2.2
7-
connexion==2.5.0
8-
coverage==5.0.3
9-
Flask==1.1.1
10-
Flask-Testing==0.7.1
11-
idna==2.8
12-
importlib-metadata==1.4.0
13-
inflection==0.3.1
14-
isort==4.3.21
15-
itsdangerous==1.1.0
16-
Jinja2==2.10.3
1+
connexion
2+
coverage
3+
cryptography
4+
Flask-Testing
175
jsonschema==3.2.0
18-
lazy-object-proxy==1.4.3
19-
lxml==4.4.2
20-
MarkupSafe==1.1.1
21-
mccabe==0.6.1
22-
more-itertools==8.1.0
23-
openapi-spec-validator==0.2.8
24-
prance==0.17.0
25-
pylint==2.4.4
26-
pyrsistent==0.15.7
27-
PyYAML==5.3
28-
requests==2.22.0
29-
semver==2.9.0
30-
six==1.14.0
31-
typed-ast==1.4.1
32-
urllib3==1.25.7
33-
Werkzeug==0.16.0
34-
wrapt==1.11.2
35-
zipp==1.0.0
6+
lxml
7+
openapi-spec-validator
8+
prance
9+
PyJWT

requirements.txt

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,5 @@
1-
astroid==2.3.3
2-
attrs==19.3.0
3-
certifi==2019.11.28
4-
chardet==3.0.4
5-
Click==7.0
6-
clickclick==1.2.2
7-
connexion==2.5.0
8-
Flask==1.1.1
9-
idna==2.8
10-
importlib-metadata==1.4.0
11-
inflection==0.3.1
12-
isort==4.3.21
13-
itsdangerous==1.1.0
14-
Jinja2==2.10.3
1+
connexion
2+
pyjwt
153
jsonschema==3.2.0
16-
lazy-object-proxy==1.4.3
17-
lxml==4.4.2
18-
MarkupSafe==1.1.1
19-
mccabe==0.6.1
20-
more-itertools==8.1.0
21-
openapi-spec-validator==0.2.8
22-
pylint==2.4.4
23-
pyrsistent==0.15.7
24-
PyYAML==5.3
25-
requests==2.22.0
26-
six==1.14.0
27-
typed-ast==1.4.1
28-
urllib3==1.25.7
29-
Werkzeug==0.16.0
30-
wrapt==1.11.2
31-
zipp==1.0.0
4+
lxml
5+
cryptography

vAPI.db

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)