Skip to content

HeaderParams are parsed as object, not mutiple params #161

Description

@Juhbaldissera

Similar to #39

Having something like

class GetWishlistHeaderParams {
  @IsString()
  key: string;

  @IsString()
  deviceId: string;

  @IsString()
  deviceOs: string;

  @IsString()
  appVersion: string;

  @IsString()
  acceptLanguage: string;
}

#....
    @Get('/')
    public async getWishlist(@HeaderParams() headerParams: GetWishlistHeaderParams) {
}

Generates swagger with one header param of object type, instead of mutiple header params:

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions