Skip to content

Create array of enums #661

Description

@ovaillancourt

Creating an array of enum doesn't appear to be implemented, would be nice to have!

var mySchema = new Schema({
  label: [{type:String, enum: ['enumVal1','enumVal2']}]
});

Small snippet of conversation on irc which might give direction:

aheckmann: file an issue, i think its b/c the validation isn't set on the array

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureThis change adds new functionality, like a new method or class

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions