File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ function parseDefinition(
85
85
definition . docs . push ( `@targetNSAlias \`${ type } \`` ) ;
86
86
} else if ( propName === "targetNamespace" ) {
87
87
definition . docs . push ( `@targetNamespace \`${ type } \`` ) ;
88
- } else if ( propName . endsWith ( "[]" ) || ( typeof type === "string" && type . includes ( "ArrayOf" ) ) ) {
88
+ } else if ( propName . endsWith ( "[]" ) ) {
89
89
const stripedPropName = propName . substring ( 0 , propName . length - 2 ) ;
90
90
// Array of
91
91
if ( typeof type === "string" ) {
@@ -192,17 +192,13 @@ function parseDefinition(
192
192
[ ...stack , propName ] ,
193
193
visitedDefs
194
194
) ;
195
- if ( typeof type === "object" && Object . keys ( type ) [ 0 ] . includes ( "[]" ) ) {
196
- definition . properties . push ( { ...subDefinition . properties [ 0 ] , name : propName } ) ;
197
- } else {
198
- definition . properties . push ( {
199
- kind : "REFERENCE" ,
200
- name : propName ,
201
- sourceName : propName ,
202
- ref : subDefinition ,
203
- isArray : false ,
204
- } ) ;
205
- }
195
+ definition . properties . push ( {
196
+ kind : "REFERENCE" ,
197
+ name : propName ,
198
+ sourceName : propName ,
199
+ ref : subDefinition ,
200
+ isArray : false ,
201
+ } ) ;
206
202
} catch ( err ) {
207
203
const e = new Error ( `Error while parsing Subdefinition for ${ stack . join ( "." ) } .${ name } ` ) ;
208
204
e . stack . split ( "\n" ) . slice ( 0 , 2 ) . join ( "\n" ) + "\n" + err . stack ;
You can’t perform that action at this time.
0 commit comments