Just discovered something I didn't know: the parameter validators. Could this be resolved by annotating the corresponding methods/parameters of the api with the [ParamValidators](https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/rest/annotations/ParamValidators.java) annotation, so the parameters are validated before creating the request? Calling the validators is the first thing the [RestAnnotationProcessor](https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/rest/internal/RestAnnotationProcessor.java#L183) does before actually building the request.
That annotation allows to define a class to be used to validate the method parameters, and it is instantiated via Guice, so you could build a validator that has the appropriate values injected (and thus let each Marconi implementation set the appropriate values in its metadata), and annotate the api methods so that validation is used. If the objective is to have a per-api-impl customizable validation before sending the request, could this be a cleaner approach? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/46#issuecomment-27432789
