Module: OpenAPIParser::ParameterValidatable
- Included in:
- Schemas::Operation, Schemas::PathItem
- Defined in:
- lib/openapi_parser/concerns/parameter_validatable.rb
Instance Method Summary collapse
- #validate_path_params(path_params, options) ⇒ Object
- #validate_request_parameter(params, headers, options) ⇒ Object
Instance Method Details
#validate_path_params(path_params, options) ⇒ Object
4 5 6 |
# File 'lib/openapi_parser/concerns/parameter_validatable.rb', line 4 def validate_path_params(path_params, ) OpenAPIParser::ParameterValidator.validate_parameter(path_parameter_hash, path_params, object_reference, ) end |
#validate_request_parameter(params, headers, options) ⇒ Object
11 12 13 14 |
# File 'lib/openapi_parser/concerns/parameter_validatable.rb', line 11 def validate_request_parameter(params, headers, ) validate_header_parameter(headers, object_reference, ) if .validate_header validate_query_parameter(params, object_reference, ) end |