Skip to content

Commit 0532acf

Browse files
committed
fix: orval v8 support
1 parent 9315128 commit 0532acf

32 files changed

+286
-251
lines changed

docs/docs.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/swagger.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/swagger.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,6 +1760,8 @@ components:
17601760
type: integer
17611761
jalapeno_count:
17621762
type: integer
1763+
levelable_overclocks:
1764+
type: integer
17631765
line:
17641766
$ref: '#/components/schemas/skycrypttypes.RodPart'
17651767
mana_disintegrator_count:
@@ -2074,9 +2076,10 @@ paths:
20742076
required: true
20752077
schema:
20762078
type: string
2077-
- description: Profile ID (optional)
2079+
- description: Profile ID (optional, can be empty)
20782080
in: path
20792081
name: profileId
2082+
required: true
20802083
schema:
20812084
type: string
20822085
responses:
@@ -2247,6 +2250,7 @@ paths:
22472250
- description: Search string (required when inventoryId is 'search')
22482251
in: path
22492252
name: search
2253+
required: true
22502254
schema:
22512255
type: string
22522256
responses:
@@ -2299,6 +2303,7 @@ paths:
22992303
- description: Search string (required when inventoryId is 'search')
23002304
in: path
23012305
name: search
2306+
required: true
23022307
schema:
23032308
type: string
23042309
responses:

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/go-git/go-git/v5 v5.16.4
99
github.com/gofiber/fiber/v2 v2.52.10
1010
github.com/joho/godotenv v1.5.1
11-
github.com/swaggo/swag/v2 v2.0.0-rc4
11+
github.com/swaggo/swag/v2 v2.0.0-rc5
1212
go.mongodb.org/mongo-driver v1.17.6
1313
)
1414

@@ -55,7 +55,7 @@ require (
5555
github.com/pkg/errors v0.9.1 // indirect
5656
github.com/sergi/go-diff v1.4.0 // indirect
5757
github.com/skeema/knownhosts v1.3.2 // indirect
58-
github.com/sv-tools/openapi v0.2.1 // indirect
58+
github.com/sv-tools/openapi v0.4.0 // indirect
5959
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
6060
github.com/xanzy/ssh-agent v0.3.3 // indirect
6161
github.com/xdg-go/pbkdf2 v1.0.0 // indirect

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,12 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu
168168
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
169169
github.com/sv-tools/openapi v0.2.1 h1:ES1tMQMJFGibWndMagvdoo34T1Vllxr1Nlm5wz6b1aA=
170170
github.com/sv-tools/openapi v0.2.1/go.mod h1:k5VuZamTw1HuiS9p2Wl5YIDWzYnHG6/FgPOSFXLAhGg=
171+
github.com/sv-tools/openapi v0.4.0 h1:UhD9DVnGox1hfTePNclpUzUFgos57FvzT2jmcAuTOJ4=
172+
github.com/sv-tools/openapi v0.4.0/go.mod h1:kD/dG+KP0+Fom1r6nvcj/ORtLus8d8enXT6dyRZDirE=
171173
github.com/swaggo/swag/v2 v2.0.0-rc4 h1:SZ8cK68gcV6cslwrJMIOqPkJELRwq4gmjvk77MrvHvY=
172174
github.com/swaggo/swag/v2 v2.0.0-rc4/go.mod h1:Ow7Y8gF16BTCDn8YxZbyKn8FkMLRUHekv1kROJZpbvE=
175+
github.com/swaggo/swag/v2 v2.0.0-rc5 h1:fK7d6ET9rrEsdB8IyuwXREWMcyQN3N7gawGFbbrjgHk=
176+
github.com/swaggo/swag/v2 v2.0.0-rc5/go.mod h1:kCL8Fu4Zl8d5tB2Bgj96b8wRowwrwk175bZHXfuGVFI=
173177
github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
174178
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
175179
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=

main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import (
1313
"github.com/gofiber/fiber/v2/middleware/recover"
1414
)
1515

16-
// @title SkyCrypt API
17-
// @version 1.0
18-
// @description API for SkyCrypt - A Hypixel SkyBlock Stats Viewer
19-
// @host localhost:8080
20-
// @BasePath /
16+
// @title SkyCrypt API
17+
// @version 1.0
18+
// @description API for SkyCrypt - A Hypixel SkyBlock Stats Viewer
19+
// @host localhost:8080
20+
// @BasePath /
2121
func main() {
2222
app := fiber.New(fiber.Config{
2323
Prefork: true, // Enable prefork (requires --pid=host in Docker)

src/routes/accessories.go

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@ import (
1414
)
1515

1616
// AccessoriesHandler godoc
17-
// @Summary Get accessories stats of a specified player
18-
// @Description Returns accessories for the given user and profile ID
19-
// @Tags accessories
20-
// @Produce json
21-
// @Param uuid path string true "User UUID"
22-
// @Param profileId path string true "Profile ID"
23-
// @Success 200 {object} models.GetMissingAccessoresOutput
24-
// @Failure 400 {object} models.ProcessingError
25-
// @Failure 500 {object} models.ProcessingError
26-
// @Router /api/accessories/{uuid}/{profileId} [get]
17+
//
18+
// @Summary Get accessories stats of a specified player
19+
// @Description Returns accessories for the given user and profile ID
20+
// @Tags accessories
21+
// @Produce json
22+
// @Param uuid path string true "User UUID"
23+
// @Param profileId path string true "Profile ID"
24+
// @Success 200 {object} models.GetMissingAccessoresOutput
25+
// @Failure 400 {object} models.ProcessingError
26+
// @Failure 500 {object} models.ProcessingError
27+
// @Router /api/accessories/{uuid}/{profileId} [get]
2728
func AccessoriesHandler(c *fiber.Ctx) error {
2829
timeNow := time.Now()
2930

src/routes/bestiary.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ import (
1010
)
1111

1212
// BestiaryHandler godoc
13-
// @Summary Get bestiary stats of a specified player
14-
// @Description Returns bestiary for the given user and profile ID
15-
// @Tags bestiary
16-
// @Produce json
17-
// @Param uuid path string true "User UUID"
18-
// @Param profileId path string true "Profile ID"
19-
// @Success 200 {object} models.BestiaryOutput
20-
// @Failure 400 {object} models.ProcessingError
21-
// @Router /api/bestiary/{uuid}/{profileId} [get]
13+
//
14+
// @Summary Get bestiary stats of a specified player
15+
// @Description Returns bestiary for the given user and profile ID
16+
// @Tags bestiary
17+
// @Produce json
18+
// @Param uuid path string true "User UUID"
19+
// @Param profileId path string true "Profile ID"
20+
// @Success 200 {object} models.BestiaryOutput
21+
// @Failure 400 {object} models.ProcessingError
22+
// @Router /api/bestiary/{uuid}/{profileId} [get]
2223
func BestiaryHandler(c *fiber.Ctx) error {
2324
timeNow := time.Now()
2425

src/routes/collections.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ import (
1010
)
1111

1212
// CollectionsHandler godoc
13-
// @Summary Get collections stats of a specified player
14-
// @Description Returns collections for the given user and profile ID
15-
// @Tags collections
16-
// @Produce json
17-
// @Param uuid path string true "User UUID"
18-
// @Param profileId path string true "Profile ID"
19-
// @Success 200 {object} models.CollectionsOutput
20-
// @Failure 500 {object} models.ProcessingError
21-
// @Router /api/collections/{uuid}/{profileId} [get]
13+
//
14+
// @Summary Get collections stats of a specified player
15+
// @Description Returns collections for the given user and profile ID
16+
// @Tags collections
17+
// @Produce json
18+
// @Param uuid path string true "User UUID"
19+
// @Param profileId path string true "Profile ID"
20+
// @Success 200 {object} models.CollectionsOutput
21+
// @Failure 500 {object} models.ProcessingError
22+
// @Router /api/collections/{uuid}/{profileId} [get]
2223
func CollectionsHandler(c *fiber.Ctx) error {
2324
timeNow := time.Now()
2425

src/routes/crimson_isle.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ import (
1010
)
1111

1212
// CrimsonIsleHandler godoc
13-
// @Summary Get Crimson Isle stats of a specified player
14-
// @Description Returns Crimson Isle stats for the given user and profile ID
15-
// @Tags crimson_isle
16-
// @Produce json
17-
// @Param uuid path string true "User UUID"
18-
// @Param profileId path string true "Profile ID"
19-
// @Success 200 {object} models.CrimsonIsleOutput
20-
// @Failure 400 {object} models.ProcessingError
21-
// @Router /api/crimson_isle/{uuid}/{profileId} [get]
13+
//
14+
// @Summary Get Crimson Isle stats of a specified player
15+
// @Description Returns Crimson Isle stats for the given user and profile ID
16+
// @Tags crimson_isle
17+
// @Produce json
18+
// @Param uuid path string true "User UUID"
19+
// @Param profileId path string true "Profile ID"
20+
// @Success 200 {object} models.CrimsonIsleOutput
21+
// @Failure 400 {object} models.ProcessingError
22+
// @Router /api/crimson_isle/{uuid}/{profileId} [get]
2223
func CrimsonIsleHandler(c *fiber.Ctx) error {
2324
timeNow := time.Now()
2425

0 commit comments

Comments
 (0)