From ed65eb94b1ffb56f9babeee9e5f7e32537548ad7 Mon Sep 17 00:00:00 2001 From: saltyaom Date: Sun, 7 Jan 2024 16:21:07 +0700 Subject: [PATCH] :tada: feat: merge scalar --- example/index.ts | 2 +- example/plugin.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/example/index.ts b/example/index.ts index e97ac36..fd602ae 100644 --- a/example/index.ts +++ b/example/index.ts @@ -9,7 +9,7 @@ const app = new Elysia({ swagger({ documentation: { info: { - title: 'Elysia Swagger', + title: 'Elysia Scalar', version: '0.8.1' }, tags: [ diff --git a/example/plugin.ts b/example/plugin.ts index 851abba..e381c31 100644 --- a/example/plugin.ts +++ b/example/plugin.ts @@ -81,6 +81,7 @@ export const plugin = new Elysia({ // } // ) .post('/file', ({ body: { file } }) => file, { + type: 'formdata', body: t.Object({ file: t.File({ type: ['image/jpeg', 'image/'],