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

Duplicate parameter sort for /api/v1/users/{user}/watching in openapi spec #1313

Closed
JulianVennen opened this issue Jan 8, 2024 · 1 comment
Labels
1. api This issue/pr relates to an issue/change on the api 1. bug Something isn't working

Comments

@JulianVennen
Copy link

Observed/problematic behavior

The openapi spec contains the following parameters for the /api/v1/users/{user}/starred and /api/v1/users/{user}/watching endpoints:

      - name: sort
        in: query
        description: How to sort the projects
        required: false
        schema:
          $ref: '#/components/schemas/ProjectSortingStrategy'
# ...
      - name: sort
        in: query
        description: Used to sort the result
        style: form
        schema:
          type: string
          enum:
          - name
          - createdAt
          - projectCount
          - locked
          - org
          - roles

Expected behavior

The same parameter name should not appear twice

Steps to reproduce

Open the openapi spec and search for /api/v1/users/{user}/watching, then scroll to the parameters

Other

No response

@kennytv kennytv added 1. bug Something isn't working 1. api This issue/pr relates to an issue/change on the api labels Jan 8, 2024
@MiniDigger
Copy link
Member

seems like this was fixed at some point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. api This issue/pr relates to an issue/change on the api 1. bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants