File tree 3 files changed +12
-6
lines changed
docs/src/pages/reference/configuration
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -67,17 +67,25 @@ Example of transformer <a href="https://github.com/anymaniax/orval/blob/master/s
67
67
68
68
Type: ` Object ` .
69
69
70
+ Default Value: ` {} ` .
71
+
70
72
If specified, Orval only generates the endpoints after applying the filter.
71
- It is possible to filter on ` tags ` .
72
73
73
- For instance the example below only generates the endpoints that contain the tag ` pets ` .
74
+ #### tags
75
+
76
+ Type: Array of ` string ` or ` RegExp ` .
77
+
78
+ Default Value: ` [] ` .
79
+
80
+ It is possible to filter on ` tags ` .
81
+ For instance the example below only generates the endpoints that contain the tag ` pets ` or matches the regular expression ` /health/ ` .
74
82
75
83
``` js
76
84
module .exports = {
77
85
petstore: {
78
86
input: {
79
87
filters: {
80
- tags: [' pets' ],
88
+ tags: [' pets' , / health / ],
81
89
},
82
90
},
83
91
},
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ export type InputOptions = {
197
197
converterOptions ?: swagger2openapi . Options ;
198
198
parserOptions ?: SwaggerParserOptions ;
199
199
filters ?: {
200
- tags ?: string [ ] ;
200
+ tags ?: ( string | RegExp ) [ ] ;
201
201
} ;
202
202
} ;
203
203
Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ export const importSpecs = async (
65
65
if ( isObject ( input . target ) ) {
66
66
return importOpenApi ( {
67
67
data : { [ workspace ] : input . target } ,
68
- // @ts -expect-error // FIXME
69
68
input,
70
69
output,
71
70
target : workspace ,
@@ -86,7 +85,6 @@ export const importSpecs = async (
86
85
87
86
return importOpenApi ( {
88
87
data,
89
- // @ts -expect-error // FIXME
90
88
input,
91
89
output,
92
90
// @ts -expect-error // FIXME
You can’t perform that action at this time.
0 commit comments