This is a template you must use to report issues.
You can also drag images, videos and includePreformatted text.
Feature(s) impacted
Displaying enum
Observed behavior
I can’t see all the enum values of a field.
Expected behavior
See all the enum values of a field
Failure Logs
No logs
Context
Please provide in this mandatory section, the relevant information about your configuration:
- Project name: Intent
 - Environment name: Development / aurélienlaclergue
 
Hi there ! ![]()
I have some issue on displaying an enum field, I don’t know why.
I have one mongoose schema like this:
const schema = Mongoose.Schema({
    ...
    type: {
      type: String,
      required: true,
      enum: ['data', 'documents', 'operation', 'asset', 'equipment']
    },
    ...
  }, {
    timestamps: { createdAt: 'creationDate', updatedAt: 'lastUpdateDate' }
  });
but on the UI, I only see “data” and “documents” on select box:
On my .forestadmin-schema.json, there is:
{
      "field": "type",
      "type": "Enum",
      "defaultValue": null,
      "enums": [
        "data",
        "documents",
        "operation",
        "asset",
        "equipment"
      ],
      "integration": null,
      "isFilterable": true,
      "isPrimaryKey": false,
      "isReadOnly": false,
      "isRequired": true,
      "isSortable": true,
      "isVirtual": false,
      "reference": null,
      "inverseOf": null,
      "validations": [{
        "message": null,
        "type": "is present",
        "value": null
      }]
    }
Also, when I remove “data” or “documents” from the enum, these values are well removed on the UI.
I don’t understand why ‘operation’, ‘asset’ and ‘equipment’ are not displayed on the UI ? ![]()



