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

Swagger UI description of PUT /v1/violaton/analysis is missing parameters #1958

Closed
flemminglau opened this issue Sep 15, 2022 · 4 comments
Closed

Comments

@flemminglau
Copy link

flemminglau commented Sep 15, 2022

Something seems to be missing in the definition of the parameters for the PUT /v1/violation/analysis call.

It states no attributes to be provided. Surely I would need to identify which violation should be updated.

Current Behavior:

image

Actually the same issue seems to exist for PUT /v1/analysis

Steps to Reproduce:

Open Swagger UI

Expected Behavior:

Environment:

  • Dependency-Track Version: 4.5
  • Distribution: [ Docker ]
  • BOM Format & Version: N/A
  • Database Server: [ PostgreSQL ]
  • Browser: Chrome

Additional Details:

(e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

@syalioune
Copy link
Contributor

Hello,
I think that issue 840 target this problem. In the mean time, you can find the related data model for those API here and here

@nscuro
Copy link
Member

nscuro commented Sep 15, 2022

Thanks @syalioune, spot on!

@flemminglau, I think we can close this as duplicate. We are aware that the Swagger doc is not accurate right now because we autogenerate it from our source code. Please verify whether #840 covers your complaint, and close this issue if it does.

@flemminglau
Copy link
Author

It does. Sorry for creating a duplicate.

@github-actions
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants