mirror of
https://github.com/zoriya/elysia-swagger.git
synced 2025-12-06 00:36:10 +00:00
🎉 feat: release 1.2.2
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user