class OpenapiValidator::ResponseValidator::JsonValidator
Attributes
data[R]
errors[R]
fragment[R]
media_type[R]
response[R]
schema[R]
Public Class Methods
new(schema:, data:, fragment:, media_type:, response:)
click to toggle source
# File lib/openapi_validator/response_validators/json_validator.rb, line 4 def initialize(schema:, data:, fragment:, media_type:, response:) @schema = schema @data = data @fragment = fragment @media_type = media_type @response = response end
Public Instance Methods
validate()
click to toggle source
# File lib/openapi_validator/response_validators/json_validator.rb, line 12 def validate OpenapiValidator::JsonValidator.fully_validate(schema, data, fragment: fragment, response: response) end