@@ -445,11 +445,11 @@ export class CodeGenProcess {
445445 const jsonldOutputFiles : TranslatorIO [ ] = [ ] ;
446446
447447 // Check if we have JSON-LD schemas and options enabled
448- const hasJsonLdSchemas = configuration . components ?. some ?.(
449- ( component ) =>
450- component . schemaType === "jsonld-context" ||
451- component . schemaType === "jsonld-entity" ||
452- component . schemaType === "jsonld-type" ,
448+ const hasJsonLdSchemas = configuration . modelTypes ?. some ?.(
449+ ( modelType ) =>
450+ modelType . typeData ? .schemaType === "jsonld-context" ||
451+ modelType . typeData ? .schemaType === "jsonld-entity" ||
452+ modelType . typeData ? .schemaType === "jsonld-type" ,
453453 ) ;
454454
455455 if ( hasJsonLdSchemas ) {
@@ -533,11 +533,11 @@ export class CodeGenProcess {
533533 configuration . config ;
534534
535535 // Check if we have JSON-LD schemas
536- const hasJsonLdSchemas = configuration . components ?. some ?.(
537- ( component ) =>
538- component . schemaType === "jsonld-context" ||
539- component . schemaType === "jsonld-entity" ||
540- component . schemaType === "jsonld-type" ,
536+ const hasJsonLdSchemas = configuration . modelTypes ?. some ?.(
537+ ( modelType ) =>
538+ modelType . typeData ? .schemaType === "jsonld-context" ||
539+ modelType . typeData ? .schemaType === "jsonld-entity" ||
540+ modelType . typeData ? .schemaType === "jsonld-type" ,
541541 ) ;
542542
543543 return await this . createOutputFileInfo (
0 commit comments