Skip to content

Commit 92deeaf

Browse files
committed
Add back in $extend
1 parent f35cb57 commit 92deeaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/OpenAPI/Parser.cfc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ component name="OpenAPIParser" accessors="true" {
176176
**/
177177
public function parseDocumentInheritance( required any DocItem ){
178178

179-
// If `DocItem` is an instance of Parser, we need to flattin it to a CFML struct
179+
// If `DocItem` is an instance of Parser, we need to flatten it to a CFML struct
180180
if (
181181
isStruct( DocItem ) &&
182182
structKeyExists( getMetaData( DocItem ), "name" ) &&
@@ -191,7 +191,7 @@ component name="OpenAPIParser" accessors="true" {
191191
}
192192
} else if( isStruct( DocItem ) ) {
193193

194-
var compositionKeys = [ "$allOf", "$oneOf" ];
194+
var compositionKeys = [ "$allOf", "$oneOf", "$extend" ];
195195

196196
for( var composition in compositionKeys ){
197197

@@ -238,7 +238,7 @@ component name="OpenAPIParser" accessors="true" {
238238
objects.each( function( item, index ) {
239239
if ( isStruct( item ) ) {
240240

241-
// If `item` is an instance of Parser, we need to flattin it to a CFML struct
241+
// If `item` is an instance of Parser, we need to flatten it to a CFML struct
242242
if ( findNoCase( "Parser", getMetaData( item ).name ) ) {
243243
item = item.getNormalizedDocument();
244244
}

0 commit comments

Comments
 (0)