mirror of
https://github.com/zoriya/elysia-swagger.git
synced 2025-12-06 00:36:10 +00:00
remove lodash.clonedeep
This commit is contained in:
@@ -68,14 +68,12 @@
|
||||
"@apidevtools/swagger-parser": "^10.1.0",
|
||||
"@scalar/api-reference": "^1.12.5",
|
||||
"@types/bun": "1.1.6",
|
||||
"@types/lodash.clonedeep": "^4.5.9",
|
||||
"elysia": ">= 1.1.0-rc.2",
|
||||
"eslint": "9.6.0",
|
||||
"tsup": "^8.1.0",
|
||||
"typescript": "^5.5.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"lodash.clonedeep": "^4.5.0",
|
||||
"openapi-types": "^12.1.3"
|
||||
}
|
||||
}
|
||||
@@ -6,8 +6,6 @@ import type { HTTPMethod, LocalHook } from 'elysia'
|
||||
import { Kind, type TSchema } from '@sinclair/typebox'
|
||||
import type { OpenAPIV3 } from 'openapi-types'
|
||||
|
||||
import deepClone from 'lodash.clonedeep'
|
||||
|
||||
export const toOpenAPIPath = (path: string) =>
|
||||
path
|
||||
.split('/')
|
||||
@@ -116,9 +114,7 @@ export const registerSchemaPath = ({
|
||||
method: HTTPMethod
|
||||
hook?: LocalHook<any, any, any, any, any, any, any>
|
||||
models: Record<string, TSchema>
|
||||
}) => {
|
||||
if (hook) hook = deepClone(hook)
|
||||
|
||||
}) => {
|
||||
const contentType = hook?.type ?? [
|
||||
'application/json',
|
||||
'multipart/form-data',
|
||||
|
||||
Reference in New Issue
Block a user