@@ -72,7 +72,7 @@ describe('parameters', () => {
7272 in : 'path' ,
7373 name : 'string' ,
7474 required : true ,
75- schema : { type : 'string' } ,
75+ schema : { pattern : '[^\\/#\\?]+?' , type : 'string' } ,
7676 } ,
7777 {
7878 in : 'path' ,
@@ -84,25 +84,25 @@ describe('parameters', () => {
8484 in : 'path' ,
8585 name : 'optional' ,
8686 required : false ,
87- schema : { type : 'string' } ,
87+ schema : { pattern : '[^\\/#\\?]+?' , type : 'string' } ,
8888 } ,
8989 {
9090 in : 'path' ,
9191 name : 'number' ,
9292 required : true ,
93- schema : { type : 'string' } ,
93+ schema : { pattern : '[^\\/#\\?]+?' , type : 'string' } ,
9494 } ,
9595 {
9696 in : 'path' ,
9797 name : 'boolean' ,
9898 required : true ,
99- schema : { type : 'string' } ,
99+ schema : { pattern : '[^\\/#\\?]+?' , type : 'string' } ,
100100 } ,
101101 {
102102 in : 'path' ,
103103 name : 'any' ,
104104 required : true ,
105- schema : { type : 'string' } ,
105+ schema : { pattern : '[^\\/#\\?]+?' , type : 'string' } ,
106106 } ,
107107 ] )
108108 } )
@@ -113,7 +113,7 @@ describe('parameters', () => {
113113 in : 'path' ,
114114 name : 'string' ,
115115 required : true ,
116- schema : { type : 'string' } ,
116+ schema : { pattern : '[^\\/#\\?]+?' , type : 'string' } ,
117117 } ,
118118 {
119119 in : 'path' ,
@@ -125,19 +125,19 @@ describe('parameters', () => {
125125 in : 'path' ,
126126 name : 'optional' ,
127127 required : false ,
128- schema : { type : 'string' } ,
128+ schema : { pattern : '[^\\/#\\?]+?' , type : 'string' } ,
129129 } ,
130130 {
131131 in : 'path' ,
132132 name : 'number' ,
133133 required : true ,
134- schema : { type : 'number' } ,
134+ schema : { pattern : '[^\\/#\\?]+?' , type : 'number' } ,
135135 } ,
136136 {
137137 in : 'path' ,
138138 name : 'boolean' ,
139139 required : true ,
140- schema : { type : 'boolean' } ,
140+ schema : { pattern : '[^\\/#\\?]+?' , type : 'boolean' } ,
141141 } ,
142142 {
143143 in : 'path' ,
0 commit comments