I have a schema:
var s = new Schema({
links: {
type: [Url]
}
});
In this case I am using the url schema type from https://github.com/bnoguchi/mongoose-types - but I have tried this with other types. Mongoose doesn't seem to validate/use the schema type when in an array - works fine without the array.
How can I define an array of schema types that will validate?