File tree 3 files changed +41
-0
lines changed
3 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ export const DEFAULT_FORMAT_MOCK: Record<
5
5
string
6
6
> = {
7
7
bic : 'faker.finance.bic()' ,
8
+ binary :
9
+ "new Blob(faker.helpers.arrayElements(faker.word.words(10).split(' ')))" ,
8
10
city : 'faker.location.city()' ,
9
11
country : 'faker.location.country()' ,
10
12
date : "faker.date.past().toISOString().split('T')[0]" ,
Original file line number Diff line number Diff line change @@ -131,4 +131,18 @@ export default defineConfig({
131
131
target : '../specifications/petstore.yaml' ,
132
132
} ,
133
133
} ,
134
+ blobFile : {
135
+ output : {
136
+ target : '../generated/swr/blob-file/endpoints.ts' ,
137
+ schemas : '../generated/swr/blob-file/model' ,
138
+ client : 'swr' ,
139
+ mock : true ,
140
+ } ,
141
+ input : {
142
+ target : '../specifications/blob-file.yaml' ,
143
+ override : {
144
+ transformer : '../transformers/add-version.js' ,
145
+ } ,
146
+ } ,
147
+ } ,
134
148
} ) ;
Original file line number Diff line number Diff line change
1
+ openapi : 3.1.0
2
+ info :
3
+ title : Blob File
4
+ description : ' Blobs'
5
+ version : 1.0.0
6
+ tags :
7
+ - name : blobs
8
+ description : Blobs
9
+ servers :
10
+ - url : http://localhost
11
+ paths :
12
+ /binary-blob :
13
+ get :
14
+ tags :
15
+ - blobs
16
+ summary : Binary Blob response
17
+ operationId : getBinaryBlob
18
+ responses :
19
+ 200 :
20
+ description : Successful Operation
21
+ content :
22
+ application/json :
23
+ schema :
24
+ type : ' string'
25
+ format : ' binary'
You can’t perform that action at this time.
0 commit comments