🎉 feat: release 1.2.2

This commit is contained in:
saltyaom
2025-02-22 00:50:06 +07:00
parent d5c1dfd52e
commit 65b20fcd3d
3 changed files with 8 additions and 6 deletions

View File

@@ -1,3 +1,7 @@
# 1.2.2 - 22 Feb 2024
Bug fix:
- [#185](https://github.com/elysiajs/elysia-swagger/pull/185) Fix path issue in Scalar config
# 1.2.1 - 19 Feb 2024
Bug fix:
- [#154](https://github.com/elysiajs/elysia-swagger/pull/154) prevent failed to fetch spec from URL error

View File

@@ -5,7 +5,7 @@ const schema = t.Object({
test: t.Literal('hello')
})
const app = new Elysia()
const app = new Elysia({ precompile: true })
.use(
swagger({
provider: 'scalar',
@@ -45,12 +45,10 @@ const app = new Elysia()
.get(
'/',
() => {
test: 'hello'
return { test: 'hello' }
},
{
response: t.Object({
a: t.Ref('schema')
})
response: 'schema'
}
)
.listen(3000)

View File

@@ -1,6 +1,6 @@
{
"name": "@elysiajs/swagger",
"version": "1.2.1",
"version": "1.2.2",
"description": "Plugin for Elysia to auto-generate Swagger page",
"author": {
"name": "saltyAom",