...
1{
2 "swagger": "2.0",
3 "info": {
4 "version": "0.0.1",
5 "title": "test of Swagger invalid pattern in items"
6 },
7 "parameters": {
8 "fooBody": {
9 "name": "user",
10 "in": "body",
11 "description": "user to add to the system",
12 "required": true,
13 "schema": {
14 "type": "array",
15 "items": {
16 "type": "string",
17 "pattern": ")<-- bad pattern"
18 }
19 }
20 }
21 },
22 "paths": {
23 "/foo": {
24 "parameters": [
25 { "$ref": "#/parameters/fooBody" }
26 ],
27 "get": {
28 "responses": {
29 "200": {
30 "description": "Successful"
31 }
32 }
33 }
34 }
35 }
36}
View as plain text