Class List Method List File List

# Module: VertxWebApiContract::HTTPOperationRequestValidationHandler

Includes:
  ValidationHandler
Included in:
  HTTPOperationRequestValidationHandlerImpl, OpenAPI3RequestValidationHandler
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web-api-contract/http_operation_request_validation_handler.rb

## Instance Method Summary (collapse)

- - (void) handle(arg0 = nil)
- - (void) parse_operation_spec
  Function that parse the operation specification and generate validation rules.

## Instance Method Details

### - (`void`) handle(arg0 = nil)

This method returns an undefined value.

Parameters:

- arg0 (`::VertxWeb::RoutingContext`) (defaults to: `nil`)

Raises:

- (`ArgumentError`)

    10
    11
    12
    13
    14
    15
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web-api-contract/http_operation_request_validation_handler.rb', line 10

    def handle(arg0=nil)
      if arg0.class.method_defined?(:j_del) && !block_given?
        return @j_del.java_method(:handle, [Java::IoVertxExtWeb::RoutingContext.java_class]).call(arg0.j_del)
      end
      raise ArgumentError, "Invalid arguments when calling handle(#{arg0})"
    end

### - (`void`) parse_operation_spec

This method returns an undefined value.

Function that parse the operation specification and generate validation rules

Raises:

- (`ArgumentError`)

    18
    19
    20
    21
    22
    23
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web-api-contract/http_operation_request_validation_handler.rb', line 18

    def parse_operation_spec
      if !block_given?
        return @j_del.java_method(:parseOperationSpec, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling parse_operation_spec()"
    end