File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change
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
+
1
5
# 1.2.1 - 19 Feb 2024
2
6
Bug fix:
3
7
- [ #154 ] ( https://github.com/elysiajs/elysia-swagger/pull/154 ) prevent failed to fetch spec from URL error
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const schema = t.Object({
5
5
test : t . Literal ( 'hello' )
6
6
} )
7
7
8
- const app = new Elysia ( )
8
+ const app = new Elysia ( { precompile : true } )
9
9
. use (
10
10
swagger ( {
11
11
provider : 'scalar' ,
@@ -45,12 +45,10 @@ const app = new Elysia()
45
45
. get (
46
46
'/' ,
47
47
( ) => {
48
- test : 'hello'
48
+ return { test : 'hello' }
49
49
} ,
50
50
{
51
- response : t . Object ( {
52
- a : t . Ref ( 'schema' )
53
- } )
51
+ response : 'schema'
54
52
}
55
53
)
56
54
. listen ( 3000 )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @elysiajs/swagger" ,
3
- "version" : " 1.2.1 " ,
3
+ "version" : " 1.2.2 " ,
4
4
"description" : " Plugin for Elysia to auto-generate Swagger page" ,
5
5
"author" : {
6
6
"name" : " saltyAom" ,
You can’t perform that action at this time.
0 commit comments