# Type "number" for enum not working

**URL:** <https://jsonforms.discourse.group/t/type-number-for-enum-not-working/1480>\
**Category:** General\
**Created:** [May 8, 2023, 7:32am UTC](https://jsonforms.discourse.group/t/type-number-for-enum-not-working/1480 "2023-05-08T07:32:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raveena](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@raveena](https://jsonforms.discourse.group/u/raveena)\
**Post date:** [May 8, 2023, 7:32am UTC](https://jsonforms.discourse.group/t/type-number-for-enum-not-working/1480/1 "2023-05-08T07:32:07Z")

</div>

Trying to create enum with number values but the below code is not working as expected,

```auto
"type": "object",
  "properties": {
    "id": {
      "type": "number",
      "title": "test",
      "enum": [100, 1000]
    }
  }

```

are there any JSON form editor examples online, where we can test our code ?  
Can somebody please help here. Thank you.

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [May 9, 2023, 9:39am UTC](https://jsonforms.discourse.group/t/type-number-for-enum-not-working/1480/2 "2023-05-09T09:39:00Z")

</div>

Hi @raveena,

Are you by chance running into this bug? [Vanilla react renderer: integer enum radio group values are converted to string · Issue #2045 · eclipsesource/jsonforms · GitHub](https://github.com/eclipsesource/jsonforms/issues/2045)
