Skip to content

Commit

Permalink
Support RxJava generation of ValidationHandlerBuilder and ValidationH…
Browse files Browse the repository at this point in the history
…andler

Fixes vert-x3#1822

With this change, it is possible to do this with RxJava API:

ValidationHandler validation = ValidationHandlerBuilder.create(schemaParser)
  .body(Bodies.json(bodySchemaBuilder))
  .build();

And then use the validation handler in a rx-router.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
  • Loading branch information
tsegismont committed Aug 23, 2021
1 parent 35407fc commit 1d2c8cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -21,7 +21,7 @@ public interface ValidationHandler extends Handler<RoutingContext> {

String REQUEST_CONTEXT_KEY = "requestParameters";

@GenIgnore
@GenIgnore(GenIgnore.PERMITTED_TYPE)
static ValidationHandlerBuilder builder(SchemaParser parser) {
return ValidationHandlerBuilder.create(parser);
}
Expand Down
Expand Up @@ -63,6 +63,7 @@ public interface ValidationHandlerBuilder {
*
* @return
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
ValidationHandler build();

static ValidationHandlerBuilder create(SchemaParser parser) {
Expand Down

0 comments on commit 1d2c8cd

Please sign in to comment.