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+
15# 1.2.1 - 19 Feb 2024
26Bug fix:
37- [ #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({
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 )
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments