File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export const getArray = ({
20
20
if ( schema . items ) {
21
21
const resolvedObject = resolveObject ( {
22
22
schema : schema . items ,
23
- propName : name + 'Item' ,
23
+ propName : name + context . override . components . schemas . itemSuffix ,
24
24
context,
25
25
} ) ;
26
26
return {
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ export type NormalizedOverrideOutput = {
79
79
components : {
80
80
schemas : {
81
81
suffix : string ;
82
+ itemSuffix : string ;
82
83
} ;
83
84
responses : {
84
85
suffix : string ;
@@ -285,6 +286,7 @@ export type OverrideOutput = {
285
286
components ?: {
286
287
schemas ?: {
287
288
suffix ?: string ;
289
+ itemSuffix ?: string ;
288
290
} ;
289
291
responses ?: {
290
292
suffix ?: string ;
Original file line number Diff line number Diff line change @@ -182,6 +182,8 @@ export const normalizeOptions = async (
182
182
components : {
183
183
schemas : {
184
184
suffix : RefComponentSuffix . schemas ,
185
+ itemSuffix :
186
+ outputOptions . override ?. components ?. schemas ?. itemSuffix ?? 'Item' ,
185
187
...( outputOptions . override ?. components ?. schemas ?? { } ) ,
186
188
} ,
187
189
responses : {
You can’t perform that action at this time.
0 commit comments