Discussions

Ask a Question
Back to All

Can't select boolean field when it's required

Hello,

If we make a boolean field required as body params, the UI will auto-select the true option. However this is not reflected in the curl example. So when we try the request, the boolean field is actually empty in the curl, and the request will fail because it's required.

Since the true option is already auto-selected, we can't select true again. We must first select false and then re-select true again to make it work.

This is our schema:

Item:
  type: object
  properties:
    activationRequired:
      type: boolean
      description: Description...
      example: false
  required:
    - activationRequired

Let me know if you need more details. Thank you in advance.