Skip to content

bug: swagger does not accept shorcut "me" as user id #24473

@Cjkjvfnby

Description

@Cjkjvfnby

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I use me instead of user in swagger UI inside the Coder (/users/{user}/quiet-hours), I got the following error. This is pure swagger validation, no requests is done to the server.

Please correct the following validation errors and try again.

    Value must be a Guid 

Relevant Log Output

Expected Behavior

Swagger does a requests with "me", but still forbid other non UUID names, like "we" or "you"

Steps to Reproduce

  1. open /swagger
  2. choose /users/{user}/quiet-hours
  3. use me as user

Environment

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions