Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-14 Thread Jonathan LaCour
Jay Pipes wrote: > On Tue, 2014-01-14 at 11:45 +0800, Christopher Yeoh wrote: >> On Tue, Jan 14, 2014 at 10:59 AM, Jay Pipes >> wrote: >> >> We don't need API extensions and they make our Compute API >> laughably complex and cumbersome. We should ditch entirely the >> concept

Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-14 Thread Doug Hellmann
On Tue, Jan 14, 2014 at 3:36 AM, Christopher Yeoh wrote: > On Tue, Jan 14, 2014 at 1:12 PM, Jay Pipes wrote: > >> On Tue, 2014-01-14 at 11:45 +0800, Christopher Yeoh wrote: >> > On Tue, Jan 14, 2014 at 10:59 AM, Jay Pipes >> > wrote: >> > >> > We don't need API extensions and they make

Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-14 Thread Sean Dague
On 01/14/2014 12:12 AM, Jay Pipes wrote: > On Tue, 2014-01-14 at 11:45 +0800, Christopher Yeoh wrote: >> On Tue, Jan 14, 2014 at 10:59 AM, Jay Pipes >> wrote: >> >> We don't need API extensions and they make our Compute API >> laughably complex and cumbersome. We should di

Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-14 Thread Christopher Yeoh
On Tue, Jan 14, 2014 at 1:12 PM, Jay Pipes wrote: > On Tue, 2014-01-14 at 11:45 +0800, Christopher Yeoh wrote: > > On Tue, Jan 14, 2014 at 10:59 AM, Jay Pipes > > wrote: > > > > We don't need API extensions and they make our Compute API > > laughably complex and cumbersome. We sh

Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-13 Thread Jay Pipes
On Tue, 2014-01-14 at 11:45 +0800, Christopher Yeoh wrote: > On Tue, Jan 14, 2014 at 10:59 AM, Jay Pipes > wrote: > > We don't need API extensions and they make our Compute API > laughably complex and cumbersome. We should ditch entirely the > concept of API extens

Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-13 Thread Christopher Yeoh
On Tue, Jan 14, 2014 at 10:59 AM, Jay Pipes wrote: > > We don't need API extensions and they make our Compute API laughably > complex and cumbersome. We should ditch entirely the concept of API > extensions in our next Compute API major release. > > I think it way too late in the cycle to make th

Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-13 Thread Jay Pipes
Caution! Long and opinionated response. tl;dr: A versioned API with no API extensions is *not* a static API. If you want to look at a heavily versioned API without extensions for a Compute control API that has successfully evolved over the years to meet its customers' needs, you need look no furt

Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-13 Thread Christopher Yeoh
On Mon, Jan 13, 2014 at 11:15 PM, Jay Pipes wrote: > On Mon, 2014-01-13 at 09:40 -0500, Ryan Petrello wrote: > > Jay, I’ll +1 to that. As I’ve been tinkering with potential Pecan > support for the Nova API, I’ve run into the same issue w/ the API > composition being seriously complicated (to the

Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-13 Thread Jay Pipes
On Mon, 2014-01-13 at 09:40 -0500, Ryan Petrello wrote: > Jay, I’ll +1 to that. As I’ve been tinkering with potential Pecan support > for the Nova API, I’ve run into the same issue w/ the API composition being > seriously complicated (to the point where I’ve realized Pecan isn’t the hard > part

Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-13 Thread Ryan Petrello
Jay, I’ll +1 to that. As I’ve been tinkering with potential Pecan support for the Nova API, I’ve run into the same issue w/ the API composition being seriously complicated (to the point where I’ve realized Pecan isn’t the hard part, it’s the bunch of cruft you need to tie in Pecan/Routes/Falcon

Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-13 Thread Jay Pipes
On Sun, 2014-01-12 at 19:52 -0800, Christopher Yeoh wrote: > On my phone so will be very brief but perhaps the extensions extension > could publish the jsonschema(s) for the extension. I think the only > complicating factor would be where extensions extend extensions but I > think it's all doable.

Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-12 Thread Christopher Yeoh
On my phone so will be very brief but perhaps the extensions extension could publish the jsonschema(s) for the extension. I think the only complicating   factor would be where extensions extend extensions but I think it's all doable. Chris — Sent from Mailbox for iPhone On Mon, Jan 13, 2014

Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-12 Thread Matthew Treinish
> > Last, is a question, is it possible to currently run the full API an build a > > json schema for it all? Or to query these validating schemas? We *really* > > want that over in tempest, so we can completely drop the manual creation of > > negative testing, and just fuzz known bad against the s

Re: [openstack-dev] [nova] api schema validation pattern changes

2014-01-12 Thread Ken'ichi Ohmichi
Hi Sean, Thank you for reviewing patches, 2014/1/12 Sean Dague : > Ken'ichi, > > I've been going through a bunch of the API validation reviews, and while the > specifics are fine, there are some overarching style patterns that I think > we might want to change. > > First, the decorator - > > @val