Skip to content

Commit 65b20fc

Browse files
committed
🎉 feat: release 1.2.2
1 parent d5c1dfd commit 65b20fc

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.2.2 - 22 Feb 2024
2+
Bug fix:
3+
- [#185](https://github.com/elysiajs/elysia-swagger/pull/185) Fix path issue in Scalar config
4+
15
# 1.2.1 - 19 Feb 2024
26
Bug fix:
37
- [#154](https://github.com/elysiajs/elysia-swagger/pull/154) prevent failed to fetch spec from URL error

example/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const schema = t.Object({
55
test: t.Literal('hello')
66
})
77

8-
const app = new Elysia()
8+
const app = new Elysia({ precompile: true })
99
.use(
1010
swagger({
1111
provider: 'scalar',
@@ -45,12 +45,10 @@ const app = new Elysia()
4545
.get(
4646
'/',
4747
() => {
48-
test: 'hello'
48+
return { test: 'hello' }
4949
},
5050
{
51-
response: t.Object({
52-
a: t.Ref('schema')
53-
})
51+
response: 'schema'
5452
}
5553
)
5654
.listen(3000)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elysiajs/swagger",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Plugin for Elysia to auto-generate Swagger page",
55
"author": {
66
"name": "saltyAom",

0 commit comments

Comments
 (0)