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

All Definitions view-able on operation (not just the definitions used by the operation) #307

Closed
sethwenzel opened this issue Nov 12, 2019 · 1 comment · Fixed by #318
Closed
Assignees
Labels
(t) Bug Bug reports (actual behavior is different than the expected behavior).

Comments

@sethwenzel
Copy link

Describe the bug
When viewing an API with many operations and definitions, each operation has the full list of all definitions, not just the ones that apply to the selected API operation. With a large API, this is odd.

For example, we have an operation with 4 different definitions in it's swagger, but we have 100s of types in the API operations overall, so there's 100s of definitions on the page.

To Reproduce
Steps to reproduce the behavior:

  1. Import a Swagger API with many operations and definitions
  2. Click on APIs
  3. Select the API
  4. Select an operation. Scrolling down you will see all definitions in the swagger spec, not just the ones in use in the operation

Expected behavior
Expect to only see the definitions that apply to the selected operation.

Portal environment
Managed

Release tag or commit SHA (if using self-hosted version)
unknown

Additional context
The operation's response model, with the 4 included definitions
image

A partial list of the definitions
image

@sethwenzel sethwenzel added (t) Bug Bug reports (actual behavior is different than the expected behavior). to-triage labels Nov 12, 2019
@azaslonov
Copy link
Member

Hi @sethwenzel, thank you for reporting the issue. We're looking into it.

ygrik added a commit that referenced this issue Nov 15, 2019
velsietis pushed a commit to nwisbeta/api-management-developer-portal that referenced this issue Apr 16, 2020
jsorohova pushed a commit that referenced this issue Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(t) Bug Bug reports (actual behavior is different than the expected behavior).
Projects
None yet
3 participants