serby / schemata

Define, create, and validate your business objects based on specified schema.
45 stars 16 forks source link

Array sub-schema validation #5

Closed domharrington closed 11 years ago

domharrington commented 11 years ago

Added test and code to validate array sub schemas. Here's the test to see the implementation: https://github.com/domharrington/schemata/blob/868701a7a6894e3d1d65c693058bb89b2520737c/test/schemata.test.js#L537-L562

Errors are added to the array index in the model where the error occurred. Is this okay?

Also:

serby commented 11 years ago

Can I confirm that this fixes #4?