Adding boolean as payload field type - Enhancement

goofy78270goofy78270 Posts: 29

Currently, there are only three options for a payload input field type. This prevent the easy UI option of selecting a true/false value for a field.

This can be done, by editing the literal values to remove the quotes around true or false, or setting these manually.

It would be nice if another field option could be added to the dropdown list for booleans rather than having to edit the literal code.

NOTE: issues with editing literal code is that field values such as concrete schemas, option list, and such are cleared and only the currently set values from the "Form XML/JSON" views are set in the Literal view.

Comments

  • benken_parasoftbenken_parasoft Posts: 744 ✭✭✭
    edited July 27

    I'm doing my best to infer what I think you are asking. Are you asking about sending a JSON message that is only a boolean? In the current release (9.10.7) you would have to use the Literal view. However, for the next release (9.10.8), I'm able to use the Form JSON view as well:

  • benken_parasoftbenken_parasoft Posts: 744 ✭✭✭

    only the currently set values from the "Form XML/JSON" views are set in the Literal view.

    This is by design. Literal view has the message that came from the view you switched from. The Literal view is just a text area so you don't have other controls based on schema like you have in Form JSON view.

Sign In or Register to comment.