File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11const { assignWithSet } = require ( './helpers' ) ;
2- const { omit, pick } = require ( 'lodash' ) ;
2+ const { omit, pick, cloneDeep } = require ( 'lodash' ) ;
33
44exports . tag = function tag ( name , options = { } ) {
55 const result = {
@@ -165,9 +165,10 @@ function determineSchemaPrefix (schemas) {
165165 return undefined ;
166166}
167167
168- exports . createSwaggerServiceOptions = function createSwaggerServiceOptions ( { schemas, docs, transformSchema } ) {
168+ exports . createSwaggerServiceOptions = function createSwaggerServiceOptions ( { schemas : originalSchemas , docs, transformSchema } ) {
169169 const serviceDocs = { schemas : { } , refs : { } } ;
170170 const transformSchemaFn = transformSchema || exports . defaultTransformSchema ;
171+ const schemas = cloneDeep ( originalSchemas )
171172
172173 let unspecificSchemas ;
173174 const prefix = determineSchemaPrefix ( schemas ) ;
You can’t perform that action at this time.
0 commit comments