@@ -25,7 +25,7 @@ export const ConfigSemanticAnalyzer = {
2525 throw new Error ( `Invalid resource type specified ${ type } . Type is not found in any plugins` ) ;
2626 }
2727
28- const { parameters : parameterDefinitions } = definition ;
28+ const { parameters : parameterDefinitions , pluginName } = definition ;
2929 for ( const [ key , value ] of Object . entries ( parameters ) ) {
3030
3131 if ( ! parameterDefinitions . has ( key ) ) {
@@ -42,6 +42,8 @@ export const ConfigSemanticAnalyzer = {
4242 throw new Error ( `Invalid resource config ${ type } . Allowed values are ${ parameter . allowedValues } but ${ value } was provided` )
4343 }
4444 }
45+
46+ configBlock . pluginName = pluginName ;
4547 }
4648 } ,
4749
@@ -58,8 +60,8 @@ export const ConfigSemanticAnalyzer = {
5860 . map ( ( [ name , value ] ) => [ name , String ( value ) , String ( value ) . matchAll ( resourceReferenceRegex ) ] as const )
5961 . filter ( ( [ , _ , match ] ) => match )
6062 . flatMap ( ( [ name , value , matches ] ) =>
61- [ ...matches ] . map ( match => [ name , value , match [ 1 ] ] as const
62- ) ) ;
63+ [ ...matches ] . map ( match => [ name , value , match [ 1 ] ] as const )
64+ ) ;
6365
6466 for ( const [ name , value , match ] of referenceParameters ) {
6567 const parts = match . split ( '.' ) ;
@@ -68,7 +70,7 @@ export const ConfigSemanticAnalyzer = {
6870 }
6971
7072 if ( ! resourceMap . has ( parts [ 0 ] ) ) {
71- throw new Error ( `Un-able to find resource being referenced. ${ match } ` ) ;
73+ throw new Error ( `Unable to find resource being referenced. ${ match } ` ) ;
7274 }
7375
7476 // TODO: Check for circular dependencies
0 commit comments