Re: CIMI and attribute validation

2013-02-07 Thread Michal Fojtik
On 02/06, David Lutterkort wrote: > > 2. Add ':required => true' parameter to attributes in the CIMI models and > >then add '.validate(format, body)' method and do all the validation on > >the model level. > > > >class MachineTemplate > > text :name, :required => true > >end >

Re: CIMI and attribute validation

2013-02-06 Thread David Lutterkort
On Wed, 2013-02-06 at 14:37 +0100, Michal Fojtik wrote: > I'm thinking how we can do a better job in validating the attributes > for CIMI entities when we creating them. > > Some attributes are required in CIMI spec, like a 'name' (etc). So I'm > thinking how we can handle this in Deltacloud. > >

CIMI and attribute validation

2013-02-06 Thread Michal Fojtik
Hi, I'm thinking how we can do a better job in validating the attributes for CIMI entities when we creating them. Some attributes are required in CIMI spec, like a 'name' (etc). So I'm thinking how we can handle this in Deltacloud. I come up with these possible sulutions: 1. Teach sinatra-rabbi