diff --git a/lib/utils.js b/lib/utils.js index a8625cb..0184235 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -50,28 +50,6 @@ exports.idPathParameters = function idPathParameters (idName, idSeparator) { return `{${Array.isArray(idName) ? idName.join(`}${idSeparator}{`) : idName}}`; }; -const allowedDefaultRefs = [ - 'findResponse', - 'getResponse', - 'createRequest', - 'createResponse', - 'createMultiRequest', - 'createMultiResponse', - 'updateRequest', - 'updateResponse', - 'updateMultiRequest', - 'updateMultiResponse', - 'patchRequest', - 'patchResponse', - 'patchMultiRequest', - 'patchMultiResponse', - 'removeResponse', - 'removeMultiResponse', - 'filterParameter', - 'sortParameter', - 'queryParameters' -]; - exports.defaultTransformSchema = function defaultTransformSchema (schema) { const allowedProperties = pick(schema, [ 'title', @@ -235,9 +213,7 @@ exports.createSwaggerServiceOptions = function createSwaggerServiceOptions ({ sc const schemaName = schema.$id; if (schemaName) { serviceDocs.schemas[schemaName] = transformSchemaFn(schema); - if (allowedDefaultRefs.includes(key)) { - serviceDocs.refs[key] = schemaName; - } + serviceDocs.refs[key] = schemaName; } });