Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Multiple definition errors found in Swagger specification #7605

Closed
ruibaby opened this issue Dec 30, 2024 · 2 comments
Closed

[Bug] Multiple definition errors found in Swagger specification #7605

ruibaby opened this issue Dec 30, 2024 · 2 comments

Comments

@ruibaby
Copy link
Contributor

ruibaby commented Dec 30, 2024

Contact Information

No response

1Panel Version

dev branch(fc401ff)

Problem Description

I noticed multiple definition errors using the Swagger Editor (https://editor.swagger.io):

image

These errors may prevent some tools from parsing the specification correctly. It is recommended to fix these issues.

Common issues found include:

// @Router /apps/details/:id [get]

It should be as follows:

// @Router /apps/details/{id} [get]

Steps to Reproduce

  1. https://editor.swagger.io
  2. File -> Import Url
  3. https://raw.githubusercontent.com/1Panel-dev/1Panel/refs/heads/dev/cmd/server/docs/swagger.json

The expected correct result

No response

Related log output

No response

Additional Information

No response

@wanghe-fit2cloud
Copy link
Member

Thanks for your feedback.

@wanghe-fit2cloud
Copy link
Member

v1.10.23-lts 版本已发布。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants