Skip to content

Enum value false doesn't render #84

@zbodor-gs

Description

@zbodor-gs

Hi,
I guess because of an old Handlebars bug (handlebars-lang/handlebars.js#827) false enum values (and thus 'constant' values too) don't render properly: they result in an empty string.

For example

{
  "type": "object",
  "properties": {
    "testTrue": {
      "type": "boolean",
      "enum": [ true ]
    },
    "testFalse": {
      "type": "boolean",
      "enum": [ false ]
    }
  }
}

results in

image

Is it possible to update the underlying handlebars lib to a newer version to fix this bug?

Thanks,
Zoli

(Possible workarounds until then: https://stackoverflow.com/questions/17664323/handlebars-doesnt-render-boolean-variables-when-false)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions