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
>
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.
>
>
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