Skip to content

Commit 14e2693

Browse files
committed
ensure $allOf expansion includes $ref expansion
1 parent 9131d0a commit 14e2693

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/OpenAPI/Parser.cfc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ component name="OpenAPIParser" accessors="true" {
188188
structKeyExists( DocItem[ key ], "$allOf" ) &&
189189
isArray( DocItem[ key ][ "$allOf" ] )
190190
) {
191-
DocItem[ key ] = extendObject( DocItem[ key ][ "$allOf" ] );
191+
DocItem[ key ] = parseDocumentReferences( extendObject( DocItem[ key ][ "$allOf" ] ) );
192192
} else if( isStruct( DocItem[ key ] ) || isArray( DocItem[ key ] ) ){
193-
DocItem[ key ] = parseDocumentInheritance( DocItem[ key ] );
193+
DocItem[ key ] = parseDocumentInheritance( parseDocumentReferences( DocItem[ key ] ) );
194194
}
195195

196196
}

0 commit comments

Comments
 (0)