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

Specified null parameter throws error into console #10226

Closed
erycek opened this issue Nov 27, 2024 · 1 comment
Closed

Specified null parameter throws error into console #10226

erycek opened this issue Nov 27, 2024 · 1 comment

Comments

@erycek
Copy link

erycek commented Nov 27, 2024

Q&A (please complete the following information)

  • OS: Any
  • Browser: Any
  • Version: [e.g. 22]
  • Method of installation: [e.g. npm, dist assets] gradle?
  • Swagger-UI version: Ouptut of versions: {"swaggerUI":{"version":"5.17.14","gitRevision":"g8aa52920","gitDirty":true,"buildTimestamp":"Tue, 28 May 2024 05:23:41 GMT"}}
  • Swagger/OpenAPI version: OpenAPI 3.0

Describe the bug you're encountering

After specifying parameter to be null, there is error in console, no request is fired and there is infinite spinner.
There is also no error reported to user

To reproduce...

Steps to reproduce the behavior:

  1. Have a GET request with QUERY parameters.
  2. Don't remove the parameter fully, rather set the parameter to null: "key": null
  3. Open console
  4. Send request
  5. See error

Expected behavior

The request should be sent and no error should be in console.

Screenshots

image
image

@glowcloud
Copy link
Contributor

Addressed upstream in Swagger Client: swagger-api/swagger-js#3726. Released as https://github.com/swagger-api/swagger-js/releases/tag/v3.32.2.

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

No branches or pull requests

2 participants