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

Required query field freezes loading #328

Closed
ChoppinBlockParty opened this issue Dec 28, 2022 · 1 comment
Closed

Required query field freezes loading #328

ChoppinBlockParty opened this issue Dec 28, 2022 · 1 comment

Comments

@ChoppinBlockParty
Copy link

I am using swagger on express node.js app. I am not sure if this issues is relevant to this project, just want to check in case it is or someone can give a workaround or something.
Copied my post from here:

- name: accessToken
  description: Access Token
  in: query
  required: true
  type: string

If I have the above parameter the loading hangs and gives the below error in console

system.js:490 Error: Required parameter accessToken is not provided
    at index.js:233:13
    at Array.forEach (<anonymous>)
    at Object.Lr [as buildRequest] (index.js:200:22)
    at actions.js:452:24
    at utils.js:177:16
    at redux.js:546:12
    at wrap-actions.js:33:10
    at Object.n (system.js:175:26)
    at Object.executeRequest (system.js:487:17)
    at actions.js:499:22
(anonymous) @ system.js:490

No way to cancel loading, have to reload the whole page and lose all the input.

If required: false is set, then it works fine. But obviously required parameter is missing.

@scottie1984
Copy link
Owner

I think this would be best raised with Swagger UI directly.

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

No branches or pull requests

2 participants