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

withUpdatedParameters Fails to Update HttpParameterType.JSON Parameters #103

Open
c0r1 opened this issue Nov 12, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@c0r1
Copy link

c0r1 commented Nov 12, 2024

Description

When I attempt to update parameters of type HttpParameterType.JSON using the withUpdatedParameters method, an exception is thrown. This indicates that the current implementation does not support updating JSON parameters.

To Reproduce

  • Define a parameter with the type HttpParameterType.JSON.
  • Try to update this parameter using the withUpdatedParameters method.
  • An exception is thrown (see attached screenshot).

Expected behavior

The withUpdatedParameters method should successfully update the JSON parameter without throwing an exception.

Actual behavior

An exception is thrown, preventing the JSON parameter from being updated.

image

Additional context

It would be very useful if withUpdatedParameters could support HttpParameterType.JSON in the future, as it would allow for more flexible and dynamic configuration of HTTP requests. This feature would be a valuable addition to the library.

Request

Could the withUpdatedParameters method be enhanced to support updating HttpParameterType.JSON parameters?

@Michelle-PortSwigger Michelle-PortSwigger added the enhancement New feature or request label Nov 12, 2024
@Michelle-PortSwigger
Copy link

Thanks for getting in touch.

Updating JSON parameters isn't currently supported, so we'll track this as a feature request. We can't make any promises as yet as we'll need to prioritize this alongside other bugs and feature requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants