Module: OpenAPIParser::ParameterValidatable
- Included in:
- Schemas::Operation
- Defined in:
- lib/openapi_parser/concerns/parameter_validatable.rb
Instance Method Summary collapse
- #set_parent_path_item(path_item) ⇒ Object
- #validate_path_params(path_params, options) ⇒ Object
- #validate_request_parameter(params, headers, options) ⇒ Object
Instance Method Details
#set_parent_path_item(path_item) ⇒ Object
17 18 19 20 |
# File 'lib/openapi_parser/concerns/parameter_validatable.rb', line 17 def set_parent_path_item(path_item) @merged_parameter = (parameters || []) + (path_item.parameters || []) nil end |
#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 |