Skip to content

Commit edf1e3c

Browse files
committed
Fix structKeyExists check
1 parent 723ce0e commit edf1e3c

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
@@ -152,7 +152,7 @@ component name="OpenAPIParser" accessors="true" {
152152
// If `DocItem[ key ]` is an instance of Parser, we need to flattin it to a CFML struct
153153
if (
154154
isStruct( DocItem[ key ] ) &&
155-
getMetaData( DocItem[ key ] ).keyExists( "name" ) &&
155+
structKeyExists( getMetaData( DocItem[ key ] ), "name" ) &&
156156
findNoCase( "Parser", getMetaData( DocItem[ key ] ).name )
157157
) {
158158
DocItem[ key ] = DocItem[ key ].getNormalizedDocument();
@@ -190,7 +190,7 @@ component name="OpenAPIParser" accessors="true" {
190190
// If `DocItem` is an instance of Parser, we need to flattin it to a CFML struct
191191
if (
192192
isStruct( DocItem ) &&
193-
getMetaData( DocItem[ key ] ).keyExists( "name" ) &&
193+
structKeyExists( getMetaData( DocItem[ key ] ), "name" ) &&
194194
findNoCase( "Parser", getMetaData( DocItem ).name )
195195
) {
196196
DocItem = DocItem.getNormalizedDocument();

0 commit comments

Comments
 (0)