@@ -62,7 +62,7 @@ function getRequestData(collections, containers, containerId, containersPath = [
6262 methodName : data . collectionName ,
6363 isActivated : data . isActivated
6464 } ;
65- const extensions = getExtensions ( data . operationExtensions ) ;
65+ const extensions = getExtensions ( data . scopesExtensions ) ;
6666
6767 return Object . assign ( { } , request , extensions ) ;
6868 } )
@@ -103,9 +103,10 @@ function mapResponses(collections, collectionId, isParentActivated) {
103103 . map ( collection => {
104104 const responseCode = collection . collectionName ;
105105 const shouldResponseBeCommented = ! collection . isActivated && isParentActivated ;
106+ const extensions = getExtensions ( collection . scopesExtensions ) ;
106107 const response = mapResponse ( get ( collection , 'properties.response' ) , collection . description , shouldResponseBeCommented ) ;
107108
108- return { responseCode, response } ;
109+ return { responseCode, response : { ... response , ... extensions } } ;
109110 } )
110111 . reduce ( ( acc , { responseCode, response } ) => {
111112 acc [ responseCode ] = response ;
@@ -137,8 +138,9 @@ function getCallbacks(data, containers, containerId, containersPath = []) {
137138 containers ,
138139 [ ...containersPath , containerId ]
139140 ) ;
141+ const extensions = getExtensions ( value . scopesExtensions ) ;
140142
141- return { [ key ] : { [ value . callbackExpression ] : callbackData } } ;
143+ return { [ key ] : { [ value . callbackExpression ] : callbackData , ... extensions } } ;
142144
143145 } )
144146 . reduce ( ( acc , item ) => {
0 commit comments