postman-app-support
postman-app-support copied to clipboard
GraphQL Query Scheme doesn't work with Enum when it's required
Is there an existing issue for this?
- [X] I have searched the tracker for existing similar issues and I know that duplicates will be closed
Describe the Issue
I have two input fields to select a specific language from a Enum. Normally it will show a nice Select with all available options, however if the input is required the input field is turned into a regular text field. For Enums a text field won't work since it adds quotes around the input, which isn't allowed for Enums.
Steps To Reproduce
Have an GraphQL endpoint with two Enum input fields, one being optional, and the other being required. Select a value for both input fields.
Screenshots or Videos
No response
Operating System
Windows
Postman Version
10.24.3
Postman Platform
Postman App
User Account Type
Signed Out User
Additional Context?
No response
Running into the same problem.
Same, doesn't make sense.
Same for me - input is enum and mandatory it shows me a text input box and adds quotes in the request body
I run Postman v11.2.0
Update: After changing this field to optional, postman showed the list as a dropdown - so this clearly is a bug in postman
@SkippyTheMonkeyKeeper thanks for reporting this issue. It has been fixed in Postman 11.6.0 released on July 31st. @barthansen can you try upgrading Postman and see if you are still facing this issue?
@timhall Upgraded to latest version - confirm the issue is fixed thnx a lot ;-)