postman-app-support icon indicating copy to clipboard operation
postman-app-support copied to clipboard

GraphQL Query Scheme doesn't work with Enum when it's required

Open Klaesy opened this issue 1 year ago • 2 comments

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

Klaesy avatar Mar 28 '24 09:03 Klaesy

Running into the same problem.

bfwg avatar Jun 29 '24 00:06 bfwg

Same, doesn't make sense.

Screenshot 2024-07-16 at 12 21 31

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

barthansen avatar Aug 13 '24 13:08 barthansen

@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 avatar Aug 13 '24 14:08 timhall

@timhall Upgraded to latest version - confirm the issue is fixed thnx a lot ;-)

barthansen avatar Aug 14 '24 13:08 barthansen