🔧 fix: reference model path

This commit is contained in:
saltyaom
2023-09-21 21:46:56 +07:00
parent 8c2050ed2f
commit 7a42bf0cde
4 changed files with 11 additions and 4 deletions

View File

@@ -180,6 +180,8 @@ export const registerSchemaPath = ({
)
}
} else if (typeof responseSchema === 'string') {
if(!(responseSchema in models)) return
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { type, properties, required, ...rest } = models[
responseSchema