Skip to content

Convert values to string for GitLab API

GitLab's API only accepts string values for variables. If there are boolean fields, for example, we have to convert them.

# .bod-ui.yml
properties:
  test:
    type: boolean

I just added .toString(). This should work for all data types (react-jsonschema-form also has number fields) and it won't do any harm if the value is already a string.

P.S. I had to add a newline to satisfy the linter.

Merge request reports

Loading