Skip to content

Swagger /admin/users/{username} returns 422 Error: Unprocessable Entity #17126

Closed
@rscataran

Description

@rscataran

Gitea Version

1.15.3 built with GNU Make 4.1, go1.16.8 : bindata, sqlite, sqlite_unlock_notify

Git Version

No response

Operating System

Windows 10

How are you running Gitea?

a command-line

Database

SQLite

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

When using the web Api /api/swagger
PATCH ​/admin​/users​/{username} Edit an existing user
results in 422 Error: Unprocessable Entity

I can confirm that the token is working because GET ​/admin​/users List all users is working as expected.

Also, user 034732 exists on the list generated by /admin/users

I am using the sample model provided by swagger on PATCH ​/admin​/users​/{username} Edit an existing user.
I just supplied the username of user to edit = 034732

Metadata

Metadata

Assignees

No one assigned

    Labels

    modifies/apiThis PR adds API routes or modifies themtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions